Free Support Forum -

Embedded images in EML message are not included while converting


Ok sure.
Please find attached the zip file containing the message file. (18.6 KB)



We have investigated the issue further on our end. In order to include embedded images in output HTML you must save MailMessage with HtmlSaveOptions instead using HtmlBody like following:

if (msg.IsBodyHtml)
                MemoryStream HtmlStream = new MemoryStream();

                //byte[] HtmlBuffer = Encoding.ASCII.GetBytes(msg.HtmlBody);
                //HtmlStream.Write(HtmlBuffer, 0, HtmlBuffer.Length);
                HtmlSaveOptions opt = new HtmlSaveOptions();
                msg.Save(HtmlStream, opt);

Can you please try suggested changes on your end.



Thanks for the suggestion.
We tried your suggestion and it worked… !
We need to check further if it matches with other part of our solution.

Also we observed that HtmlSaveOptions option is not available in version of Aspose.Email.
Please let us know if any similar option is available with version ?




I regret to share that the version that you have referred is no longer supported and we request you to please try using latest version with suggested sample. And you have confirmed that as well that latest version worked.