We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

MSG to MHTML: Subject and attachment filename become garbled (C# .NET)

i use Aspose.Email.dll ( for test msg to mht in vs2010.
But when some Japanese mails are converted into MHT format, the mailing title and attachment name become random code. Unlike the original mail, it can not be read normally.

Is it a trial version question? Please solve it.

Thank you. Attached below is my code and the pic.

MailMessage mailMsg = MailMessage.Load(“D:\777.msg”);
mailMsg.From.DisplayName = “”;
mailMsg.SubjectEncoding = null;
MhtSaveOptions opt = SaveOptions.DefaultMhtml;
opt.MhtFormatOptions = MhtFormatOptions.RenderTaskFields | MhtFormatOptions.WriteHeader;
mailMsg.Save(“D:\test_code\777.mht”, opt); (61.9 KB)

I found that not only the headlines were scrambled, but the text was scrambled.

Previously, we tried aspose. email. DLL v4.0.0, the text is normal, only the title content is scrambled.


Can you please share source file and generated result so that we may further investigate to help you out.

See Annex 777.zip, which seems to set subject Encoding invalid. Or is my code incorrect?


I have worked over your requirements and have been able to observe the issue. An issue with ID EMAILNET-39458 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.

When this problem is solved, please extend it to other encodings except the Japanese format email, thank you.


We will share the good news with you as soon as the issue will be fixed.