cancel
Showing results for 
Search instead for 
Did you mean: 

Inline image in Outlook Email body

Erika_Papp
Level 4

Hi, 

I am trying to add image to the Outlook HTML email body but it always appears like a red cross. 

Anyone has any solution for this?

Thank you.

 

<html>
<body>
<p>Test</p><img src='data&colon;image/jpg;charset=utf-8;base64,QzpcT0cwMDFfRGFpbHkgU2FsZXMgUmVwb3J0XDIwMjQtMDUtMDhcUGFweXJ1cyBCRS5qcGc=' />
</body>
</html>
 
 
 
<html>
<body>
<p>Test</p><img src="C:\test.jpg">
</body>
</html>

 

 

1 BEST ANSWER

Best Answers

Hi Erika,

Before the solution, what you must know is, when you include something like <img src="C:\Users\Rohit\Desktop\email\logo.png" /> Your are essential asking that email to fetch the image from the local system and that may not be necessarily available on the recipient's device.

What you need to do is, instead of above path just do <img src="logo.png" /> and then include a attachment collection where column Path includes all the images in email body, like "C:\Users\Rohit\Desktop\email\logo.png"

rsrivastava2_0-1715594509044.png

These attachments that are referenced in IMG tag in email body will not show as attachment but will appear in body like you intend to.

Example - 

rsrivastava2_1-1715594694714.png

 

WeitghtRPAMatey

View answer in original post

5 REPLIES 5

durgesh.sharma2
Level 3

Hi Erika,

Please try the solution in the attached screenshot as after adding some code to the existing VBO (Email - POP3/ SMTP) it will work perfectly and attach the image in the body of the email as you wanted.

durgeshsharma2_0-1715335734150.png

I hope this will help you.

Bring 2 data items like this 

Mohamad_747_0-1715546075479.png

Inside the mail data item put : 

<style>
table {font-family: Verdana; font-size: 10pt; width: 100%}
td {border: 1px solid gray; border-collapse: collapse; padding: 5px}
</style>
<div style="font-family: Verdana; font-size: 10pt">
<p>You can find below the image:</p>
<br>
<img src="***PATH_TO_IMG***" alt="Image Description" width="1000">

Notice : you can modify the width if you want.

Inside the Path to img you put the path to your image.

Inside your vbo you put this expression : 

Mohamad_747_1-1715546221713.png

Replace([Mail],"***PATH_TO_IMG***",[Path to img])

I hope this will help you.

Regards.

 

Hi, 

Thank you for the answer. Unfortunately the sent email look like this after the recipient received it: 

Erika_Papp_0-1715591505745.png

 

 

 

Hi,

Can you try with another image just to see if the issue is related to the image or not  ?

Hi Erika,

Before the solution, what you must know is, when you include something like <img src="C:\Users\Rohit\Desktop\email\logo.png" /> Your are essential asking that email to fetch the image from the local system and that may not be necessarily available on the recipient's device.

What you need to do is, instead of above path just do <img src="logo.png" /> and then include a attachment collection where column Path includes all the images in email body, like "C:\Users\Rohit\Desktop\email\logo.png"

rsrivastava2_0-1715594509044.png

These attachments that are referenced in IMG tag in email body will not show as attachment but will appear in body like you intend to.

Example - 

rsrivastava2_1-1715594694714.png

 

WeitghtRPAMatey