I have Outlook 2003 and have set up a distribution list. Since I have several e-mail addresses, I would like to know if it is possible to link a specific return address with a given distribution list.
Gary <snip>
I have Outlook 2003 and have set up a distribution list. Since I have several e-mail addresses, I would like to know if it is possible to link a specific return address with a given distribution list.
Gary <snip>
For — short answer: Outlook 2003 does not provide a built‑in way to attach a specific sending account to a Contact Group (distribution list). The ability to enumerate accounts and programmatically pick the account used to send a MailItem (the MailItem.SendUsingAccount mechanism) arrived with the Outlook 2007 object model; you won’t find an equivalent property in the 2003 object model. (nirsoft.net)
Practical options:
Quick examples (adapt before using):
VBA for Outlook 2007+ (set account, open message with a Contact Group added)
Sub NewMail_To_DL_WithAccount()
Dim a As Outlook.Account, m As Outlook.MailItem
For Each a In Application.Session.Accounts
If LCase(a.SmtpAddress) = "you@domain.com" Then
Set m = Application.CreateItem(olMailItem)
m.Recipients.Add "My Contact Group Name"
m.Recipients.ResolveAll
Set m.SendUsingAccount = a
m.Display
Exit For
End If
Next
End Sub (uses MailItem.SendUsingAccount). (learn.microsoft.com)
Redemption approach for Outlook 2003 (example outline — Redemption must be installed and licensed):
Sub SendUsingRedemption()
Dim s As Object, rAcc As Object, rMsg As Object
Set s = CreateObject("Redemption.RDOSession")
s.MAPIOBJECT = Application.Session.MAPIOBJECT
Set rAcc = s.Accounts("account@domain.com")
Set rMsg = s.GetDefaultFolder(olFolderDrafts).Items.Add("IPM.Note")
rMsg.Recipients.Add "My Contact Group Name"
rMsg.Account = rAcc
rMsg.Save
rMsg.Send
End Sub (see Redemption docs for details). (dimastr.com)
Notes and cautions: programmatic sending can trigger Outlook’s programmatic‑access security prompts — plan for testing, signing macros, or using a trusted add‑in; Redemption can avoid some prompts but is third‑party. Back up your profile before testing and prefer server-side fixes (Exchange) when possible. Also, ’s point about not posting raw email addresses publicly is sensible. (support.microsoft.com)
If a small snippet or a tailored macro is wanted (for your exact DL name and account display/SMTP), paste your DL name and the account display/SMTP and this can be adapted into a ready-to-run macro.
Jump to Post— caperjack 875I have Outlook 2003 and have set up a distribution list. Since I have several e-mail addresses, I would like to know if it is possible to link a specific return address with a given distribution list.
Gary
post you email address is …
I have Outlook 2003 and have set up a distribution list. Since I have several e-mail addresses, I would like to know if it is possible to link a specific return address with a given distribution list.
Gary
post you email address is not a good idea ,unless you are looking for SPAM ,or you think we are stupid enough to send you something so you can spam us back
Mea Culpa,...Ok, I accept your comment. The system claims that I can edit my post. I don't see how. I was not aware how I would know if someone had responded.
Is there a way that I can remove the e-mail address? I can see how to edit this message but not how to edit the original.
Mea Culpa,...Ok, I accept your comment. The system claims that I can edit my post. I don't see how. I was not aware how I would know if someone had responded.
Is there a way that I can remove the e-mail address? I can see how to edit this message but not how to edit the original.
no you only get 30 min to edit the post ,in your profile you can set it to send you a email if someone responds ,i will send post to admin to have the email removed
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.