Skip to main content
Cadet | Tier 2
April 4, 2022
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?

  • April 4, 2022
  • 11 replies
  • 387 views
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
    Most Valuable Pathfinder
    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!

    _Tamil_
    Cadet | Tier 2
    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
    Most Valuable Pathfinder
    April 5, 2022

    I hope the below link will help you to achieve

     

    Image in body of the mail || Automation anywhere A2019

    _Tamil_
    Tamil Arasu10
    Most Valuable Pathfinder
    Most Valuable Pathfinder
    April 5, 2022

    Did you try the same logic in the SMTP method?

    _Tamil_
    Tamil Arasu10
    Most Valuable Pathfinder
    Most Valuable Pathfinder
    April 5, 2022

    Are you using Outlook to receive the email?

    _Tamil_
    Cadet | Tier 2
    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 

    Cadet | Tier 2
    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
    Most Valuable Pathfinder
    April 5, 2022

    ok

    _Tamil_
    Tamil Arasu10
    Most Valuable Pathfinder
    Most Valuable Pathfinder
    April 5, 2022
    Cadet | Tier 2
    April 5, 2022

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