PR_INTERNET_MESSAGE_ID returns blank when sending message

假装没事ソ 提交于 2019-12-12 09:59:12

问题


I'm developing add-in for Outlook 2013,I'm struggling with PR_INTERNET_MESSAGE_ID , I could easily get PR_INTERNET_MESSAGE_ID on archiving incoming mails, but it returns nothing on sending mail. Any help would be appreciated! Thank you! here is my code

 string PR_INTERNET_MESSAGE_ID = "http://schemas.microsoft.com/mapi/proptag/0x1035001F";
        Microsoft.Office.Interop.Outlook.PropertyAccessor pal = mailItem.PropertyAccessor;
        string Internet_Message_Id = pal.GetProperty(PR_INTERNET_MESSAGE_ID).ToString();

回答1:


That property is only sent after the message is sent. Exchange 2010/2013 sets that property for all messages created in the store, but you will not necessarily see it on messages in the cached store. Are you using PST or Exchange?



来源:https://stackoverflow.com/questions/19029082/pr-internet-message-id-returns-blank-when-sending-message

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!