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

Free Support Forum - aspose.com

How convert msg to Html through aspose in vb.net

I can able convert msg to html through Aspose.But it is only convertying msg body not To,From, Subject Attacment name.
So i have a requirement how i can convert complete msg to html with To, From,subject Attachment name.
current conversation TO,FROM,SUBJECT AND Attachment name Missing.
So please help.


Please have a look at the source MSG and output HTML files.zip (1.8 KB). We can see From, Subject, To, Attachment names. Can you please share your sample MSG file? Please use this link to convert MSG to HTML.
files.zip (1.79 KB)

hi i am looking vb.net code for converting msg to html.i am looking for complete msg conversation to html.
i have aspose dll 5.9.0 and HtmlFormatOptions is not there.


You are using very old version of API. Please try using latest Aspose.Email for .NET 20.6 on your end. The API provide support for exporting to MHTML.

            var options = new HtmlSaveOptions();
            string fileName ="Message1.MSG";
            var mailMessage = MailMessage.Load(fileName);
            mailMessage.Save(fileName + ".html", options);