3 weeks ago
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.
Answered! Go to Answer.
2 weeks ago
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"
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 -
3 weeks ago
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.
I hope this will help you.
3 weeks ago - last edited 3 weeks ago
Bring 2 data items like this
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 :
Replace([Mail],"***PATH_TO_IMG***",[Path to img])
I hope this will help you.
Regards.
2 weeks ago
Hi,
Thank you for the answer. Unfortunately the sent email look like this after the recipient received it:
2 weeks ago
Hi,
Can you try with another image just to see if the issue is related to the image or not ?
2 weeks ago
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"
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 -