Unable to view image in the outlook email body

Hello, community

I used HTML code to add the image in the outlook body. It’s working well using my outlook id. If I send the same mail to another person then the people are unable to see the image in the body.

I’m not getting it. Kindly help me to solve this issue.

Best Regards,
Vrushali

Hi @Vrushali_Gave

You need to attach the image as attachment to the mail and the image tag needs to be changed adding the cid attribute with image filename in it.

Look at this post for more details

@kumar.varun2 Thank you for the response.

As I said it’s working well using my outlook id which means I’m able to see the image in the body. But when I send the same mail to another person then the person is not able to see the image. It shows a small square box.

Did you try the above method.

@kumar.varun2 Yes I tried.

I’m using the below code to add the image in the body

"<a>"+vbNewLine+
"<img src="""+imagePath+"""><br><br>"+vbNewLine+
"</a>"+vbNewLine

Hi @Vrushali_Gave

path won’t work here. Use this

<img border=0 width=100 height=100 src="cid:imageName.jpg">

and the same file is in attachment also with the same name (imageName.jpg). Adjust size accordingly

@kumar.varun2 Is there any another solution ?

<img border=0 width=100 height=100 src="cid:imageName.jpg">

This is the solution.

With attaching the file in mail

1 Like

@kumar.varun2 But I don’t want to add the file in attachment.

I have multiple images and want to add in body of the email

@kumar.varun2 Could you please send the workflow if you have it ?

@kumar.varun2 Thank you for your assistance

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