I have a plugin that add certain custom properties to the Outlook.MailItem.ItemProperties collection when the user sends an email from his/her Outlook.
I am unable to find a way to retrieve the same after getting the email from Exchange using Aspose.Network.
I have tried using both MailMessage.Headers collection and MapiMessage.NamedProperties collection after creating the MapiMessage from MailMessage object.
My plugin code is something like this:
// On New Mail clicked…
Outlook.MailItem newItem = (Outlook.MailItem)MyOutlookPlugin.CreateItem(Outlook.OlItemType.olMailItem);
var iProp0 = newItem.ItemProperties.Add(“MyProp0”, OlUserPropertyType.olText, null, null);
iProp0.Value = “PROP0VALUE”;
var iProp1 = newItem.ItemProperties.Add(“MyProp1”, OlUserPropertyType.olText, null, null);
iProp1.Value = “PROP1VALUE”;
// Show newItem object