MHT file- mhtml without header

Hi, how can i export a email to mhtml format without headers ( from, to, subject, cc… etc )

Hi Francisco,


Thank you for using Aspose.Email.

You can export an email to mhtml by specifying the MailMessageSaveOptions enumerator in the MailMessage’s Save method as follow:

MailMessage mailMessage = MailMessage.Load(“E20130121000020.msg”);

mailMessage.Save(“Output.mhtml”, MailMessageSaveType.MHtmlFromat, MailMessageSaveOptions.None);

This specifies that the headers are to be excluded while exporting to MHTML format. Please feel free to contact us if you have any additional query/inquiry. We’ll be glad to assist you further.