Free Support Forum -

Corrupt MHT generated on saving EML (C#)

Hi, the attached “SR-76359 - input.eml” file is not saved to Mhtml correctly. The produced file “SR-76359 - output.Mhtml” can’t be opened by any application like Aspose.Words, MS Word or Internet Explorer.

I am using Aspose.Email 19.9 for .Net 4.
The code looks like this:

var doc = MailMessage.Load(inputPath);
doc.Save(inputPath + “.Mhtml”, MhtSaveOptions.DefaultMhtml); (1.5 MB)


I have worked with sample file shared and have been able to observe the issue. An issue with ID EMAILNET-39607 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

The issues you have found earlier (filed as EMAILNET-39607) have been fixed in this update.