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.
Have you considered the Headers property to get/set XMailer?
Dim msg As MapiMessage = MapiMessage.Load(fileName) msg.Headers.[Set]("X-Mailer", "MyMailer") Dim xMailer As String = msg.Headers("X-Mailer")
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)
Sometimes will not work!
Thanks for your kind consideration
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.
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.