Search code examples
excelvbaoutlookexchange-server

Macro send email, change 'from' Display Name but NOT email address


I have this:

.SentOnBehalfOfName = """Customer Service"" <[email protected]>"

the name "Customer Service" is officially associated with the email address. I'd like to change that display name to something else but keep using the same email address like this:

.SentOnBehalfOfName = """ABC Event CS"" <[email protected]>"

or

.SentOnBehalfOfName = """XYZ Event CS"" <[email protected]>"

But it always uses the default display name instead of the one I specify. Is it possible to achieve this in some way?


Solution

  • Exchange always uses the default name and the primary SMTP address when sending. If you want to change the display name and/or select one of the proxy addresses from a particular mailbox, sending through SMTP is the only option if you need to do that programmatically. In case of an end user, you can use a product like Proxy Manager (I am its author).