Send an image in body of an email

Send an image in body of an email

Use Case Description

My dear RPA developers,
I’ve tried to send an image in body of an email, however I couldn’t achieve it with below approaches, and along those all the approaches I’ve received a same result that an image isn’t visible.

Used approaches:

  1. Use img src html tag with the local path of the image
  2. Use attachment content id
  3. Convert image in base64 and use data URI to show the image in my email

Somebody says embedded images aren’t visible in Outlook 2013 and only works after 2016. But I’m afraid I could ask my all the clients to use the higher version just for this.

And, I’ve seen one solution in our Forum by @vikasrawat911, and it’s working. He used to send a forwarded email along with an image in body. But this is also not a solution for my search.

References:

  1. How to add the images in SMTP mail body - #11 by vikasrawat911
  2. Embed image in email using Send Outlook Mail Message activity
  3. Image in Email Body - Using Send Email Activity - #8 by Rajesh.Attada01

So it’s really much appreciable if you help me out.

Thanks in advance.
Regards,
Manoj Vijayakumar

AS-IS WORKFLOW, TO-BE WORKFLOW

-

Other information about the use case

Industry categories for this use case: Information Technology and Services

Skill level required: Advanced

UiPath Products that were used: UiPath Studio

Other applications that were used: Email, Image

Other resources: -

What is the top ROI driver for this use case?: Accelerate growth and operational efficiency

write all the formate in html or save as .html file after that you can read html file using read text file activity and after you can pass your image url in mail send activity

Hi @manoj-vkumar

Have you tried this method,

Thanks

6 Likes

Hi @pawanrajpurohit,

Welcome to our community :slightly_smiling_face:
I’ve tried to use HTML content as both a file and hard coded, but not worked. And, I’ve an image in local not resource path.

Do you have any idea or am I missed your point!

Thanks and Regards,
Manoj Vijayakumar

Email Acitvity

click on attach file and you will find


you will find this image and pass your local file path in value argument in double quotes .

Hope you find your answer

1 Like

Hi @prasath_S,

Thanks for your reply. It works for me. I made mistake to put that image in some other instead of main project folder.

Regards,
Manoj Vijayakumar

Hi @pawanrajpurohit,

Thanks for your reply :slightly_smiling_face:
Issue has been resolved and the above demo video was clarified my doubts.

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