How do I open local .msg files in web browser (html format) and display embedded pictures

7k Views Asked by At

I know how to open local .msg files in webbrowser in html format.

The problem is when the .msg has embedded pictures, the only thing that appears is a blank space ("picture not found") where it is supposed to be.

If I open the .msg file in Outlook, I see the images correctly, but in my program I can't see embedded pictures.

I'm using Vb .Net and I'm very newbie.

2

There are 2 best solutions below

0
On

Embedded images are attachments. Use some API able to read .msg file format and get attachments and insert/link in the html body

https://stackoverflow.com/questions/5271261/how-to-create-an-outlook-msg-file-from-a-web-service

1
On

Save the message in the MHTML format - it embeds the pictures.