Image need to be imbedded in email body

MelanieRPADev

New Member
Hello,

I was trying to put an image to an email body. And I tried converting the email into HTML and use <img> tag. none works.I need your suggestions
 

Sukesh Kumaru

Active Member
Hi,
Just use the action called "copy" to copy that image to clipboard and goto email body ctrl+v to paste the image in email body.
 

VJR

Well-Known Member
Hi MelanieRPADev,

Hope you are using POP3/SMTP and not MapiEx which does not support HTML.
(edit: Blue Prism has now made two new VBOs available such as Outlook VBO and MapiEx with Html, available in the newer BP versions or as a download from the BP portal's Products | VBO section)

Make sure to enable BodyIsHTML.

First you will need to actually attach the image to the email as an attachment.
Assuming [colMyImage.ImagePath] is the collection column that has your image...
Try this in the Body. Later on once it works you can remove the wordings "Embedded Picture."

"<html><body>Embedded <img src=""cid:" & [colMyImage.ImagePath] & """ > picture.</body></html>"

For embedding an image in an html body first you need to attach the file to the email and then use the cid parameter (content id) of the html img tag.

One thing to note in the below html code:
"<html><body>Embedded <img src=""cid:" & [colMyImage.ImagePath] & """ > picture.</body></html>"
If you use this code and if the recipient is not able to see the image, then instead of the full path in the cid parameter try just giving only the file name with extension (eg; Image1.jpg) without the full path and it will automatically take the cid of the attached file. The full path will still be present in the collection while attaching, but with only the file name and extension in the Img tag.
 

Ricmath

New Member
Hi MelanieRPADev,

Hope you are using POP3/SMTP and not MapiEx which does not support HTML.
(edit: Blue Prism has now made two new VBOs available such as Outlook VBO and MapiEx with Html, available in the newer BP versions or as a download from the BP portal's Products | VBO section)

Make sure to enable BodyIsHTML.

First you will need to actually attach the image to the email as an attachment.
Assuming [colMyImage.ImagePath] is the collection column that has your image...
Try this in the Body. Later on once it works you can remove the wordings "Embedded Picture."

"<html><body>Embedded <img src=""cid:" & [colMyImage.ImagePath] & """ > picture.</body></html>"

For embedding an image in an html body first you need to attach the file to the email and then use the cid parameter (content id) of the html img tag.

One thing to note in the below html code:
"<html><body>Embedded <img src=""cid:" & [colMyImage.ImagePath] & """ > picture.</body></html>"
If you use this code and if the recipient is not able to see the image, then instead of the full path in the cid parameter try just giving only the file name with extension (eg; Image1.jpg) without the full path and it will automatically take the cid of the attached file. The full path will still be present in the collection while attaching, but with only the file name and extension in the Img tag.
Hi, Is this code working?
I tried the above. After attaching the image to email what needs to be done?
Can you explain in detail?

Thanks,
Richard
 

vaibhavmane

New Member
Hi MelanieRPADev,

Hope you are using POP3/SMTP and not MapiEx which does not support HTML.
(edit: Blue Prism has now made two new VBOs available such as Outlook VBO and MapiEx with Html, available in the newer BP versions or as a download from the BP portal's Products | VBO section)

Make sure to enable BodyIsHTML.

First you will need to actually attach the image to the email as an attachment.
Assuming [colMyImage.ImagePath] is the collection column that has your image...
Try this in the Body. Later on once it works you can remove the wordings "Embedded Picture."

"<html><body>Embedded <img src=""cid:" & [colMyImage.ImagePath] & """ > picture.</body></html>"

For embedding an image in an html body first you need to attach the file to the email and then use the cid parameter (content id) of the html img tag.

One thing to note in the below html code:
"<html><body>Embedded <img src=""cid:" & [colMyImage.ImagePath] & """ > picture.</body></html>"
If you use this code and if the recipient is not able to see the image, then instead of the full path in the cid parameter try just giving only the file name with extension (eg; Image1.jpg) without the full path and it will automatically take the cid of the attached file. The full path will still be present in the collection while attaching, but with only the file name and extension in the Img tag.
Hi VJR,

Can you explain me how to get content id or cid.

Thanks.
 

ayarora

New Member
Hi, I am using above code, but recipient are nor able to see image, I tried removing full path just image name with extension, but still it does not work.
 
Top