Hi,
When the attached EML files is saves as MHtml some data in the top is missing. See “outlook.PNG”. The produced file is “out.Mhtml”.
Tested with latest Aspose.Email 21.9 for .Net 4
The code looks like this:
var msg = MailMessage.Load(inputPath);
var mthSaveOptions = new MhtSaveOptions
{
MailMessageSaveType = MailMessageSaveType.MHtmlFormat,
SkipInlineImages = false,
SaveAttachments = false,
CheckBodyContentEncoding = true,
PreserveOriginalBoundaries = false,
PreserveOriginalDate = false,
MhtFormatOptions = MhtFormatOptions.DisplayAsOutlook,//.None,
};
msg.Save(inputPath + “.Mhtml”, mthSaveOptions);
363546_SR-161908_MissingHeader.zip (2.8 MB)
Best Regards,
Vassil