We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Create MapiMessage of a given type

I’ve been looking at the following post :

<a href="https://forum.aspose.com/t/33216

I’ve been trialing the Apose.Email on a trial license, is it at all possible to create a message of IPM.Post.RSS type?

The reason I ask, as you know you can drag and drop messages in to different folders. I would like to be able to create messages of different types outside of the standards already provided?


Hi Ashley,

Thank you for contacting Aspose support team.

You may use following sample code for generating the MapiMessage of type “IPM.Post.RSS”. Please give it a try and let us know the feedback.

MapiMessage mapi = new MapiMessage("user@domain.com", "user2@domain.com", “Subject”, “Body”);

//Option 1

MapiProperty msgClass = new MapiProperty(MapiPropertyTag.PR_MESSAGE_CLASS_W,Encoding.Unicode.GetBytes(“IPM.Post.RSS”));


//Option 2

mapi.Save(path, “msgFileName.msg”);

Great, thanks for the quick response.

Hi Ashley,

You are welcome and please feel free to write to us if you have any other query related to the API.


In my option, it should be provided as a method such as MapiMessage.SetMessageClass(“RequiredMessageClass”) and the API should handle the rest. There a number of methods available such as SetStringProperty, SetProperty, CustomProperty and these sometimes seem confusing. What is your feedback on this?

Hi Acton,

Thank you for providing the suggestion. I have logged it as an enhancement ticket under id: EMAILNET-34993 for further investigation by the product team. I shall write here as soon as some feedback is received in this regard.

The issues you have found earlier (filed as EMAILNET-34993) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.