Question

Hello All, i am trying to take screenshots from a webpage and insert them in a html mail body. I can capture an area and save it to local path. But idk how can i insert these local images to a html mail body. Is there an easy way to do that?


Hello All, i am trying to take screenshots from a webpage and insert them in a html mail body. I can capture an area and save it to local path. But idk how can i insert these local images to a html mail body. Is there an easy way to do that?

11 replies

Userlevel 3
Badge +7

 

You can use the below-mentioned HTML code or please try with

 

https://botstore.automationanywhere.com/bot/a2019-send-email-with-html-image

 

Example :

 

Use HTML Tag like this: <img width="10" height="20" id="CompanyLogo" src="cid:CompanyLogo.png" style="width:3.5in; height:5.4in">

 

Hope that helps!

 

 

Thanks!

Thanks for your reply.

 

I have tried this bot before and run the bot with the following HTML code but mail body contains an empty frame instead of an image.

<img width="10" height="20" id="CompanyLogo" src="C:\Users\alotta\Desktop\Screenshot.png" style="width:3.5in; height:5.4in">

 

also i have tried 'src' part as "cid:C:\Users\alotta\Desktop\Screenshot.png"

 

but they have not worked for me.

 

What else should i do to see this local image in mail body.

Thanks.

Userlevel 3
Badge +7

I hope the below link will help you to achieve

 

Image in body of the mail || Automation anywhere A2019

Userlevel 3
Badge +7

Did you try the same logic in the SMTP method?

Userlevel 3
Badge +7

Are you using Outlook to receive the email?

Yes i have try this html message ;

 

Hİ<p><img height='90' width='100' style='display:block'

src="C:\Users\alotta\Desktop\Error.png"><p>Regards<p>

 

And the output seems like this

 

Screen Shot 2022-04-05 at 16.48.55 

Thanks again,

 

This solution includes to send email via outlook. I was trying to send mail via smtp method.

 

Do you have any idea for smtp mail? because the robot's mail account doesn't work with outlook app :(

Userlevel 3
Badge +7

ok

Userlevel 3
Badge +7

because sometimes, outlook is doesn't show the image

https://answers.microsoft.com/en-us/outlook_com/forum/all/outlook-2013-html-email-body-not-displaying/c55be483-5e2c-4f52-ad68-a671bed2523a/p>

No, robot sends it with gmail smtp and i am using the gmail.com to receive it.

Userlevel 4
Badge +8

Hello @Tunç Furkan Ceylan​, Please refer below KB article.

https://apeople.automationanywhere.com/s/article/Embedded-image-not-visible-in-Email-body

Reply