我使用下面的msdn鏈接中的代碼,它在我的系統中完美地工作以獲取發件人電子郵件地址。但是,當我將相同的代碼部署到我們的一個開發服務器時,下面的代碼行無限期地掛起\無限制地凍結而沒有任何響應。追蹤之後,我認爲如果發送者對象的屬性被訪問,它永遠掛起。高速緩存交換模式在郵箱上「打開」,並在Outlook 2010中運行。我也從手動下載了Outlook的地址簿,但它不會幫助。我相信這不是一個代碼問題。有人可以幫忙嗎?Outlook Interop - MailItem.Sender掛起凍結
https://msdn.microsoft.com/en-us/library/office/ff184624.aspx
sender.AddressEntryUserType == Outlook.OlAddressEntryUserType。 olExchangeUserAddressEntry || sender.AddressEntryUserType == Outlook.OlAddressEntryUserType。 olExchangeRemoteUserAddressEntry
您是否可以在同一臺機器上手動雙擊Outlook中該項目的發件人並查看詳細信息? –
@Dmitry是的,我可以看到那些細節。 – appootan
在同一臺機器上,對嗎? –