How to convert .eml to .html with the images in html body

Hi, I’m trying to convert the email with the images in the html body to html file. But the images are not showing when converted. please suggest your thoughts to achieve this.

Hi @VimalrajMoorthi ,

You wont be able to see the images from email because in email these images are embedded, There are 2 ways you can get the images into these html files

  1. Save the images in the email (which will be attachment) into local location and upload it into a file server / webserver and get the reference link of the image and refer it in the tag

  2. Follow the same step as above and instead of uploading it to file server, convert the image to base64 format and refer it in the tag as mentioned below

<!DOCTYPE html>
<html>
  <head>
    <title>Title of the document</title>
  </head>
  <body>
    <div>
      <p>From wikipedia</p>
      <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAF" alt="Red dot"/>
    </div>
  </body>
</html>

Please let me know if it works

Thanks,
Sri

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.