How to attach Screenshot image in email body

Hi ,

I am trying to attach screenshot in email body.

→ Want to attach below Image in outlook email body

→ I tried below and also gave path in attachments which is not working as expected.

→ Image is getting attached in email but I want in Body.

Thanks,
Naresh

Hi @Mandava_Naresh

ConvertImageToBase64.xaml (6.1 KB)
@Mandava_Naresh
use above xaml to convert image to base64 string

next simply use base64string variable in send email activity


you can also combine base64string variable with other html tags e.g.
"<h2>header</h2>"+base64String+"<p>test</p>"

Hi @jack.chan … I am getting below error

Image path is “Documents\Screenshot.png” but it is trying to find in ‘C:\Users\naresh.mandava\Downloads\Documents\Screenshot.png’.

It is working only when I put image file in project folder

Thanks,
Naresh

@Mandava_Naresh you need to pass the FULL path not a relative path

currently youre passing relative path
Documents\Screenshot.png

change this to full path something like this
C:\Users\username\Documents\Screenshot.png

Hello @Mandava_Naresh

You can use Create HTML content activity to create the syntax for attaching the file and then use that HTML syntax in the email body by enabling IsHtml property.

Thanks

1 Like

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