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

Free Support Forum - aspose.com

Save as HTML Not embedding images

I have an MHT file with embedded images. I save as HTM, but only some images come over. See the signature image source references as linked image, as does the FB image. Only the FB image comes through with the encoding properly moved to the src of the original image. message.zip (48.8 KB)

The difference between the images seems to be the PNG images were properly converted, but the JPG one was not.


We tried this using the latest version of Aspose.Email for .NET 18.7 and were not able to observe the problem you have mentioned. Please have a look at the attached output and following code sample that we used at our end.180527.zip (18.8 KB)

Sample Code

MailMessage mht = MailMessage.Load("180527\\message.mht", new MhtmlLoadOptions());

mht.Save("180527\\180527.html", Aspose.Email.SaveOptions.DefaultHtml);

Changing version from 18.6 to 18.7 fixed it.

It’s good to know that your issue is resolved with updating to latest version. Let us know if you have any further query related to API.