How to choose which Outlook Account a Mailitem is sent from - reliably using SendUsingAccount
问题 Let's say you have several accounts attached to your Outlook client and want to be able to choose which one to send a mail from using VBA. What do you do? The MailItem.SendUsingAccount parameter looks the right way to do this and is recommended elsewhere like here or here or here. However, if you apply the example in the Developer Reference, setting the SendUsingAccount property to valid Accounts may be impossible. Why? This appears to be the answer : You must Dim your MailItem as an Object