Skip to main content
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

Tamil Arasu10
Most Valuable Pathfinder
Forum|alt.badge.img+15
  • Most Valuable Pathfinder
  • 3269 replies
  • April 4, 2022

 

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!


  • Author
  • Cadet | Tier 2
  • 4 replies
  • April 5, 2022

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.


Tamil Arasu10
Most Valuable Pathfinder
Forum|alt.badge.img+15
  • Most Valuable Pathfinder
  • 3269 replies
  • April 5, 2022

I hope the below link will help you to achieve

 

Image in body of the mail || Automation anywhere A2019


Tamil Arasu10
Most Valuable Pathfinder
Forum|alt.badge.img+15
  • Most Valuable Pathfinder
  • 3269 replies
  • April 5, 2022

Did you try the same logic in the SMTP method?


Tamil Arasu10
Most Valuable Pathfinder
Forum|alt.badge.img+15
  • Most Valuable Pathfinder
  • 3269 replies
  • April 5, 2022

Are you using Outlook to receive the email?


  • Author
  • Cadet | Tier 2
  • 4 replies
  • April 5, 2022

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 


  • Author
  • Cadet | Tier 2
  • 4 replies
  • April 5, 2022

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 :(


Tamil Arasu10
Most Valuable Pathfinder
Forum|alt.badge.img+15
  • Most Valuable Pathfinder
  • 3269 replies
  • April 5, 2022

ok


Tamil Arasu10
Most Valuable Pathfinder
Forum|alt.badge.img+15
  • Most Valuable Pathfinder
  • 3269 replies
  • April 5, 2022

  • Author
  • Cadet | Tier 2
  • 4 replies
  • April 5, 2022

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


Forum|alt.badge.img+11

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings