Hi, I’m trying to embed an image (.png) into my email content (html codes). These are some methods that I have tried and the respective outcomes:
1. Use img src html tag with the local path of the image.
The image is not visible when sent to other computers as they do not have access to the image that is pointing to my local path.
2. Use attachment content id.
I referred to this thread and tried out something similar as proposed by @Suchi3190 but the image is not visible.
https://forum.uipath.com/t/how-to-add-the-images-in-smtp-mail-body/3054/4
3. Convert image in base64 and use data uri to show the image in my email.
It appears that for Outlook versions of 2007 and above, base64 image cannot be displayed.
https://www.campaignmonitor.com/blog/email-marketing/2013/02/embedded-images-in-html-email/
Attached is my source code.
Test Email Embed Image.zip (16.6 KB)
Appreciate your help!