开发者

Outlook Automation - Multiple Mailboxes?

开发者 https://www.devze.com 2023-01-26 20:52 出处:网络
I am creating an Outlook automation, where i have to manage several mailboxes. I\'d like to send mails using different mailboxes. The logged on user has the required rights to all those mailboxes. I

I am creating an Outlook automation, where i have to manage several mailboxes.

I'd like to send mails using different mailboxes. The logged on user has the required rights to all those mailboxes. I have created profiles, where every given mailbox is the default mail box. So how can i switch those profiles and/or mailboxes using interop? Preferly by not shutting down Outlook every time i "switch".

R开发者_JAVA百科egards


Well i figured out, it does not work that simple. Using .Logon() will enable you to select a profile, but to switch to another profile you have to shutdown Outlook completly!

0

精彩评论

暂无评论...
验证码 换一张
取 消