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

Free Support Forum - aspose.com

MapiMessage.XMailer Property

Can you please accept this feature request to add MapiMessage.XMailer property?
To conform with MailMessage, and also in case we load eml to MapiMessage.
Even if not used directly in mapi message itself, it can be used when saving: MapiMessage.Save
I’m sure XMailer property is a commonly used useful property.
Thanks :slight_smile:

Hello @australian.dev.nerds,

Have you considered the Headers property to get/set XMailer?

For example:

Dim msg As MapiMessage = MapiMessage.Load(fileName)
msg.Headers.[Set]("X-Mailer", "MyMailer")
Dim xMailer As String = msg.Headers("X-Mailer")

Thank you.

1 Like

Not bad, but not always working properly!
And MapiMessage.XMailer is highly useful, almost every email SDK has it, even your MailMesage!

MyMapiMessage = MapiMessage.Load(MyMemoryStream, LoadOptionsXYZ)
MyMapiMessage.Headers.Set(“X-Mailer”, “blah”)
Sometimes will not work!

Thanks for your kind consideration :slight_smile:

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): EMAILNET-40935

You can obtain Paid Support services if you need support on a priority basis, along with the direct access to our Paid Support management team.

1 Like

A sample project + sample .msg to load the message and save it as: Oft , Eml , Emlx , Mht , Tnef
You can see X-Mailer header is not saved in ANY of the target formats!
WindowsApplication22.zip (98.4 KB)


Thank you for the samples provided.