邮件项发件人的SMTP地址

时间:2016-12-14 16:22:25

标签: c# email outlook-addin outlook-2016

我为Outlook 2016创建了一个插件。

要获取发件人的SMTP地址,我正在关注How to: Get the SMTP Address of the Sender of a Mail Item

最近在尝试下线

时开始破坏
if (sender.AddressEntryUserType == Outlook.OlAddressEntryUserType.olExchangeUserAddressEntry
    || sender.AddressEntryUserType == Outlook.OlAddressEntryUserType.olExchangeRemoteUserAddressEntry)
  

消息="操作失败。" StackTrace =" at Microsoft.Office.Interop.Outlook.AddressEntry.get_AddressEntryUserType()\ r \ n at ....."   ErrorCode = -1802485755

0 个答案:

没有答案