Image need to be imbedded in email body

VJR

Well-Known Member
Staff member
#3
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.
 
#5
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
 
#6
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.
 
Top