且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Outlook 自动化 - 更改发件人帐户

更新时间:2023-02-08 20:58:46

一位名叫 Sue Mosher 的人在 microsoft.public.office.developer.outlook.vba.

A person named Sue Mosher wrote up a pretty summary on this issue in microsoft.public.office.developer.outlook.vba.

简而言之,它可以归结为以下任一情况:

In short, it boils down to either of this:

  • 使用 MailItem.SentOnBehalfOfName,它只适用于 Exchange 环境(我想你就是这种情况) - 当用户对另一个 Exchange 邮箱具有发送为"权限时,这很漂亮与切换帐户大致相同.
  • 使用一个小技巧,包括摆弄CommandBars
  • 使用 Outlook 兑换
  • (在 OL2007 中,您将拥有 MailItem.SendUsingAccount)
  • use MailItem.SentOnBehalfOfName, which only works in Exchange enviromnents (I suppose that is the case for you) - when the user has "Send As" permissions for the other Exchange mailbox, this is pretty much the same thing as switching accounts.
  • use a small hack that involves fiddling with the CommandBars
  • use Outlook Redemption
  • (in OL2007, you would have MailItem.SendUsingAccount)