03-12-2019 09:53 AM
I am trying to send emails though MS Outlook. I am using the outlookrep2000 sample as a reference, but I need to actually open Outlook using a different account than the default one on my PC. Does anyone have any suggestions on how I can do this?
Thanks!
03-13-2019 02:05 PM
I think the best place to start will be with the Outlook__NameSpaceLogoff and Outlook__NameSpaceLogon methods. Reading through the Microsoft help on these, I think the Logon method must be used when an instance of Outlook isn't running, as otherwise nothing will change. In order to get to that state, we can either start off with Outlook being closed, or using the Logoff method to start.
I've linked the Microsoft help document here for the logon method just in case!