PR_INTERNET_MESSAGE_ID在发送消息时返回空白 [英] PR_INTERNET_MESSAGE_ID returns blank when sending message
问题描述
我正在为Outlook 2013开发外接程序,我在PR_INTERNET_MESSAGE_ID方面苦苦挣扎,在归档传入邮件时可以轻松获得PR_INTERNET_MESSAGE_ID,但在发送邮件时却不返回任何内容. 任何帮助,将不胜感激! 谢谢! 这是我的代码
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();
推荐答案
该属性仅在发送消息后发送. Exchange 2010/2013会为存储中创建的所有邮件设置该属性,但不一定会在缓存存储中的邮件上看到该属性. 您正在使用PST还是Exchange?
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?
这篇关于PR_INTERNET_MESSAGE_ID在发送消息时返回空白的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!