How to send image in gmail body?

Hi, Folks, I want to send an image in gmail body, I have tried base 64 method but it works with outlook only not work with gmail.

Please provide your suggestions.

thanks in advance

HI @Sanket_Shinde1

You can try the below way:

Downnload UiPath.GSuite.Activities for Send Email activity by going to Manage Packages=> All Packages=> Type Package Name=> Click Install=> Click Save.

Using Create HTML Content you can write the body and you have an option Insert Image in that way you can insert the image. pass that output variable in Send Email activity by keeping Body as Text option.

Will help if any difficulties

Regards

You can use as html body with image src = ‘your image path’
Regards,

Hi, could you elaborate how to do that

Hi Parvathy , I am facing this error while running the code

Hi, Not working ,
image is not show in body

Hi @Sanket_Shinde1

  1. Take Send SMTP Mail Message Activity.
  2. Check IsBodyHtml from Acitvity Properties.
    ** Assign all other details also like Server,Port,Email,Password.
    image
  3. Use below template in Body. (Take as Example)
"Hi,<br><br>
Check below image.<br>
<img src=Image.png><br><br>
Thanks"

image
4. In Attach Files Pass Same File Name.

NOTE : IMAGE FILE MUST BE IN THE CURRENT DIRECTORY.

Hope it will help you :slight_smile:
Cheers!!

Hi , Nawazish
While running …facing this error

@Sanket_Shinde1
Check the below thread

Hope it helps!!

Hi, Nawazish ,
in gmail not working
image

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.