How do i specify X-Headers for outgoing emails in Microsoft Outlook 2010

折月煮酒 提交于 2019-12-04 18:44:22

ReliefJet Essentials' Outlook rules integration allows that. You just create an outgoing rule and select ReliefJet Essentials' Set Header Value tool as a custom action. That's all!

Prasanta Kumar

I am able to add an X-header. It was tricky to find the GUID

const string SP_INTERNETHEADERS = "{00020386-0000-0000-C000-000000000046}/";
const string internetheaderSchema = "http://schemas.microsoft.com/mapi/string/" + SP_INTERNETHEADERS;
string mailproperty = internetheaderSchema + XHeader;
MailItem olmail = ThisAddIn._Application.ActiveInspector().CurrentItem;
olmail.PropertyAccessor.SetProperty(mailproperty, value);
olmail.Save();
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!