Sending e-mail from within VBA

We have an application that makes heavy use of the capability to send out email. The application is written in Access, and we use the local Outlook client to send mail through the client's Exchange server. This has worked fine so far.

However we now have a need to send email from the same machine, but make it look like it came from a different account (i.e. email sender). In realtime Outlook, you can define multiple accounts in your Outlook profile and can easily switch between them, so that the From address reflects the underlying account set up.

After hours of searching, it seems that from vba you can control almost everything about an e-mail EXCEPT make it send from a different account.

Any Ideas

Thanks, -Rob



Answer this question

Sending e-mail from within VBA