Unable to insert image in body

Hello Friends,

I am trying to insert image in body of email, but somehow I am getting error for it “right click or tap and hold here to download pictures error in outlook” .

Can anybody help me to resolve this please.


image

Hi @Pramod_Bharat_Mangale

Please refer this video below,

Thanks

HI @Pramod_Bharat_Mangale

Have a look on the thread

Regards
Gokul

This video only I referred, and prepared the code but still it is giving me error

@Pramod_Bharat_Mangale

Have you put the images in the project folder where the main.xaml is located?

Thanks

Yes, I have placed image in project folder

@Pramod_Bharat_Mangale

Have the image name passed in the collection?

If the above method not works,try below one

Thanks

convert your image to html string first then use that string in your body, use this sequence.
ConvertImageToBase64.xaml (5.6 KB)
pass in the path to your image and it will output a string
image
Replace your with this string so the body will look like
"Hello Team,<br>.."+out_base64String+ "<br><br>Thank you<br>........."

I have modified code to below

And also we do not have to include the file name/Image File Name in Arguments or collection.

And it worked for me.

Thank you.

1 Like

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