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

Free Support Forum - aspose.com

Converting to MHTML

Hi team,
We are facing large time delays when converting emails to MHTML having large images. Is there some way we can avoid converting images to output mhtml? This will save us time during conversion.


The MhtSaveOptions class has SkipInlineImages property that can be set to true to avoid rendering inline images to MHTML. The feature is available from version 17.6 onwards. Please try it at your end and let us know if we could be of any additional help to you.

Sample Code

MhtSaveOptions mhtSaveOptions = new MhtSaveOptions();

mhtSaveOptions.SkipInlineImages = true;

eml.Save(Path.Combine(dataDir, "EmlToMhtmlWithoutInlineImages_out.mht"), mhtSaveOptions);