The idea is to create the object of the Mail to be sent, but the activities here wont let you do that, you can do it with code, i will even create a custom activity for me c# - Send inline image in email - Stack Overflow
@bcorrea May I know where I have to use the custom code in Uipath to embed the image.
I have to check the data from google sheets and when I used Find Files and Folders Activity - It shows as error that the activity is under the Gsuite application scope. So since I’m under the Gsuite application scope I just used Send Mail Message in the same scope to send the email.
I’m doing the way I know to add inline images but not embedding the image in the body of the email, plz take a look and tell me where i’m doing wrong. Also if possible plz send me the corrected one.
WHEN I copied the code from stackoverflow to invoke code activity i got many errors and i seriously don’t know how to rectify that errors so i’m attaching the xaml of my version which i’m trying plz take a look on that project and send me the corrected one’s if there are any changes that you found.
You a re using the oldest gsuite package known to men so i cannot open your project, still, i dont think you can use gsuite to do this… Also you can try like this when setting your attachments and your body:
I attached the above image which has “Uipath Testing” as a body message and test.png as an attachment.
So @bcorrea you mean there is no other way to embed an image inside the body isn’t???
I make sure that
isBodyHTml is checked and though everything is done still the image is getting as an attachment or just showing an image icon in the body.
I had a biggest hope that I’ll get a solution in forum
Directly doing with UiPath is not possible but it can be done by integrating UiPath with Python
As Python’s email library gives the ease to create MIME objects that can send inline embed images.
For Code reference, one can refer to my personal UiPath Notes
Hi, For those who are looking to add inline attchments in GMAIL. This is a sample code that places 2 image files as Inline attachments in GMAIL body using UiPath. GmailMailActivities.xaml (32.9 KB)