Results 1 to 5 of 5
  1. #1
    5 Star Lounger Vincenzo's Avatar
    Join Date
    Mar 2004
    Posts
    654
    Thanks
    95
    Thanked 14 Times in 13 Posts

    Outgoing account based on Contact folder? (Outlook 2002)

    I use Outlook 2002 at home. I have two accounts, one for business, one for personal.

    I also have my Contacts list separated into two folders, business and personal.

    When I create a new email I usually go into the appropriate folder of the Contacts list, right click an entry and select New Message to Contact.
    Is there a way to tell Outlook that when I go into the Business folder of my Contacts that the new message should come from the business account, so I do not have to remember to select it manually? The personal email account is the default, I prefer to leave it that way.

    Thanks

  2. #2
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,576
    Thanks
    5
    Thanked 1,057 Times in 926 Posts

    Re: Outgoing account based on Contact folder? (Outlook 2002)

    Unfortunately no. You have designated your personal account as the primary account. That will be the default Outlook uses for a new e-mail unless you change it when you are composing the e-mail.

    Joe
    Joe

  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Outgoing account based on Contact folder? (Outlook 2002)

    Not as far as I know. It might perhaps be done using VBA code but that's beyond me.

  4. #4
    5 Star Lounger Vincenzo's Avatar
    Join Date
    Mar 2004
    Posts
    654
    Thanks
    95
    Thanked 14 Times in 13 Posts

    Re: Outgoing account based on Contact folder? (Out

    Thanks for the info Hans and Joe.

    John, thanks for the suggestion, but the Reply To is actually not too important for me, the primary issue is the address that people see as where the mail came from. I think I'll just have to make the business account the default.

  5. #5
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: Outgoing account based on Contact folder? (Out

    Here's an alternative, if you want to consider it. Rather than selecting between accounts, you can set the "ReplyTo" address found under Options in the message compose window. That way the recipient sees your business or personal email address as applicable. The VBA here would automate that step. You would need to change the hard coded contact folder names and ReplyTo addresses to match you actual folder and email address names. I don't have multiple folders to test on, so post back if you have problems.

    Sub UseReplyToByFolder()
    Dim itmContact As Object, itmNewMsg As MailItem
    Dim strReplyTo As String
    ' get the open contact or contact selected in the Contacts window
    On Error Resume Next
    If TypeName(Application.ActiveWindow) = "Explorer" Then
    Set itmContact = ActiveExplorer.Selection(1)
    Else
    Set itmContact = ActiveInspector.CurrentItem
    End If

    If Not itmContact Is Nothing Then
    If itmContact.Class = olContact Then
    Set itmContact = ActiveInspector.CurrentItem
    ' select 'ReplyTo' address based on Contact parent folder name
    Select Case itmContact.Parent.Name
    Case "Business"
    strReplyTo = "me@work.com"
    Case "Personal"
    strReplyTo = "me@home.com"
    Case Else
    strReplyTo = "me@home.com"
    End Select
    ' create message, set "ReplyTo" address
    Set itmNewMsg = Application.CreateItem(olMailItem)
    itmNewMsg.ReplyRecipients.Add (strReplyTo)
    itmNewMsg.Display
    End If
    End If

    Set itmNewMsg = Nothing
    Set itmContact = Nothing
    End Sub

    If you wish, you could tie this in to the more complex commandbar code demonstrated by <!profile=JScher2000>JScher2000<!/profile> in <post#=473,448>post 473,448</post#>.
    -John ... I float in liquid gardens
    UTC -7ąDS

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •