How to Add inline image in outlook Mail

Hi All,

I’m trying to add two inline images in the mail body. This is the code I’m using in the Body Field :

image

But, I’m getting images as attachments.

Hi @Vaishnav_Tej

Enable IsbodyHTML in the Send Outlook Mail message activity

Regards
Gokul

1 Like

Hi @Vaishnav_Tej,
please put html tags and body as well also enable isbodyhtml in send email activity property

Hello,

The Image is not displaying properly as shown below:

image

@Vaishnav_Tej
please give full path
img src=“/images/stickman.gif”

1 Like

Hi @Vaishnav_Tej

Check out the Thread

Regards
Gokul

Yes I have enabled it and added html tags .But Image is not displaying properly in the mail body.

image

Hi @Vaishnav_Tej

Follow the steps

  1. Keep the Image in the PNG format

  2. Use Create HTML Content activity

Refer the docs : https://docs.uipath.com/activities/docs/create-html-content

Note : You can also enter all the body content in this activity

  1. Click on the Insert image option in the Window

  1. Select insert now

  1. Select the full path in the file.

  2. Save it in a variable → mailBody

Check out the Reference Video link

  1. Use Send Outlook mail activity → Enable the IsbodyHTML

  2. Pass the Variable in the mail body activity

image

Hope it will helps

Regards
Gokul

1 Like

After giving full path and Adding html tags it is working perfectly.
Thank you:-)
One more question, Instead of giving Full Path I tried to add a Variable But, that way it’s again not working.
image

image

@Vaishnav_Tej

please check that the solution flag is not given, when the case is still open

When sending the email with the image embedded in the body, then the file needs also to be available at the receiver’s end. With an URL from the web vs. a local file path, we do have some differences in availability.

So we can embed the images as described here:

@Vaishnav_Tej
if you are giving variable the you give like this,
“img src=”+Imagepath+"

@Vaishnav_Tej
concatenate like this


put variable in yellow mark

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