+1 vote

I am using the demo until I see if it does what I need. I have a email with a image in it. I am using email.SaveHtmlAs("C:\Filename.html") to save the email as a html file. I then want to read the filename.html to a literal so that it can be displayed. To do this I use:

objReader = New StreamReader("C:\Filename.html")
LitEmail.Text = objReader.ReadToEnd

The email is displayed but the image is not. How do I get the image to display?

Thanks

closed with the note: I didn't have the image file in the same folder. It's fixed now.
by
closed

1 Answer

0 votes

What kind of application is that (ASP.NET, WinForms, WPF)?

How are you displaying this HTML data? Are you using HTML control for that?

Are those images links to remote servers or they were attached to the email (and referenced using cid)? Where cid images saved along with HTML?

You can read this article to learn more about cid protocol and how images are referenced from email's HTML.

by (297k points)
...