Changing the From Email Address using VBA

M

mick.smith1

I have 2 email accounts in outlook and depending on the content of
incoming emails I have an Access database which automatically sends a
response. Depending on the email content will determine which email
address I put in the from field.

So far the nearest I have come to achieving this is to add a contact
and then use the mailitem .SentOnBehalfOfName = "Contact"

Is there a way to specify programatically the email address in the from
field or programatically change the default email account.

Thanks for any assistance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top