我为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