How to send outlook email body as an image using UIPath

Hi Team,

Can we send an email body content as an image format using UIPath.

Would you like to send image along the mail
If so we can mention the file path of the image in ATTACH FILE option in the Send outlook mail activity
Or if we want to send the body content along a mail
Then get the list of mail messages from outlook using get outlook mail activity and store that to a list of mailmessages variable
Now use a FOR EACH Loop and pass the above variable as input and inside the loop use SAVE MAIL MESSAGE ACTIVITY where mention the input as item and the folder path where we can save them as .eml file

—now next to this for each loop use assign activity like this
arr_files = Directory.GetFiles(“yourfolderpath”)
Now pass this arr_files variable as input to a FOR EACH and inside that use Start process activity and mention the input filepath as item.ToString

—then we can use Take Screenshot and save the image and send via mail

Cheers @RajeshT

1 Like

Hi @Palaniyappan,Thank you for your response.
My objective is to ,users should not copy my mail content will this work in this scenario which you have mentioned?

Hmm…not sure even they can try getting the date from the screenshot image if been sent
But that is not possible like we can’t restrict the receiver to use that message where he needs right…

1 Like

Hi @Palaniyappan,

Noted and thank you for your inputs.
But with the above solution the email send to users will be email format right.

1 Like

Yah of course
It would be buddy as we send via mail activity only and that too with the image as a attachment

1 Like

HI @Palaniyappan,

Hi @

Which executable i need to use in StartProcess activity to open .eml files.


1 Like

Hope the below post helps


1 Like

Kindly mention the .eml file path in FilePath property and not in arguments
Cheers @RajeshT

1 Like