Create Mail Sender Object

前端 未结 2 1525
一生所求
一生所求 2021-01-13 02:01

I am creating an Email Object in Outlook 2013, but I cannot find how to create the Sender object. I am using this code:

Outlook.MailItem mail = (Outlook.Mail         


        
2条回答
  •  广开言路
    2021-01-13 02:15

    You cannot set this property Outlook.MailItem.Sender directly.

    Only in cases where there are multiple account configured in the Outlook client, you can set this property to the AddressEntry object of the user that is represented by the CurrentUser property of a specific account.

    More Info: See http://msdn.microsoft.com/en-us/library/office/ff869056.aspx

提交回复
热议问题