Missing Data when EML Is Saved as MHTML

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

@DWProject,
Thank you for the issue description. I reproduced the problem with missing data and logged the issue with ID EMAILNET-40460 in our tracking system. Our development team will investigate this case. You will be notified when the issue is resolved.

The issues you have found earlier (filed as EMAILNET-40460) have been fixed in [this update](https://downloads.aspose.com/email/net/new-releases/aspose.email-for-.net-21.11-(dlls-only)/).