Sending mail issue

Hi everyone,
In the body of Smtp mail, I want to send a message in " " plus a variable in which data is stored.
How to do that.

Thanks And Regards,
Supriya

in the body " ‘’ "+ variable.tostring + " ‘’ "

1 Like

Hi @Santhosh_Hyd
How to write in the body the “variable.tostring” in the nextline.

Thanks and Regards,
Supriya

1 Like
1 Like

+EnviromentNewLine+ you can use this to write in next line or VbCrlf

1 Like

Hi everyone,
Thankyou all for the reply it helped me.

I want to send a png in the body of Smtp how do i do it .

Thanks and Regards,
Supriya

Hi
add the file path including file name inside double quotes in value field of the attachment property of send SMTP mail message

Regards,
Pavan

Hi @pavah003
The image is sen as an attachment, I want the image in the body of email , I tried using embedded image but not getting the output.
I have written this “” in the value field of assign activity.
File is not found by uipath.

Thanks and Regards,
Supriya

Hi,

In the property window of Send SMPT mail activity, tick the isBodyHTML property and then write the HTML code for image which you want to insert in body.

Hope this helps, please let us know if this works or any other queries.

Regards,
Pavan H

This might help you.

Hi,

The below code might help you to add the image inside body,

HTML Image

<img src=”“C:\Users\pavan\Pictures\Pavan.png”" alt="“Flowers in Chania”" width="“460"” height="“345"”>"

Please let us know if this works:)

Hi @pavanh003

what should be give in alt in the html code

Thanks and Regards
supriya

Hi,
The alt is like if the image does not appear in that case the alternate to the image would be the text in the place of image

Regarda,
Pavan H

Hi,

Please check the below html if you have any queries please let us know.

Open the html and right click to find the source code.test.html (12.1 KB)

Regards,
Pavan H.

Hi @pavanh003

code is not working .In email body an empty space is printed and the png image that i want to embed to body is shown in email as attachment.
How do i find alt for an image.
Do we any activity of reading png in uipath because in manage package I saw “libpng” but I m not able to install it.A message is thrown that the “installation failed”.

Thanks and Regards,
Supriya

Hi,

Please send the screenshot of the workflow or the workflow you are trying, it will be easy to identify the error and solve the issue.

Regards,
Pavan H.

Hi,

Please find the attached workflow for your reference and let us know if that works.

Mail.xaml (6.4 KB)

Regards,
Pavan H.

Hi @pavanh003,
Please find the attachment below of workflow and png respectively.

Email Automation.zip (127.8 KB)

Thanks and Regards,
Supriya

Hi @pavanh003,
The “main.xaml” sent by you shows “unresolved activities”.

Thanks and Regards,
Supriya