Free Support Forum -

Unable to get Outlook.MailItem.ItemProperties

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


Thank you for inquiry.

Could you please post a sample MSG file for us, in which you have added some custom properties? Also mention the name of these properties, we will check at our end.

We also need the following information:

  • Exchange Server version
  • Aspose.Network version
  • Do you use ExchangeClient or ExchangeWebServiceClient class to download email?