How to attach multiple image in outlook mail body

Dear Developers,

Please help me out from below issue

I am not able to attach screenshot on mail body,
there are two screenshot need to attach in mail body please help me how to write html code or other way

it would be very appreciated for me
Thanks in advance
Regards
Zaid Qazi

Hi @zaid.ahmad

you can use the following html in the body property

"<html>
<body>
  <p>Here are the screenshots:</p>
  <img src='4947.png'/>
  <img src='8047.png'/>
</body>
</html>
"

select IsBodyHtml in the properties of send outlook mail src is the path of your image

@zaid.ahmad,

Follow these threads.

Thanks,
Ashok :slight_smile:

@muktadir

How to pass srPreformatted textc variable on body expression editor

like this @zaid.ahmad

"<html>
<body>
  <p>Here are the screenshots:</p>
  <img src='"+path+"'/>
  <img src='"+path1+"'/>
</body>
</html>
"

@muktadir
Hii

When i write the code and passed the variable but i m getting error
‘String Constants must end with a double quotes’

find the below code

"<html>
<body>
  <p1>PFA</p1>
  <P2>Please find the attached output file & screebshot</p2>
 <br>
  <img src =' "+SSS1+" ' /> 
<br>
 <img src =' "+SSS2+" ' />
 <br>
<p3> Thanks & Regards</p3>
<br>
<p4>ZQ</p4>
<p5>This Is an auto generated e-mail. Please Do Not reply</p5>
<br>
</body>
</html>"



hi what are the p1 p2 tags? AFAIK there are only p tag
also could you remove the space between ' and " in src. Also have you enabled IsHtmlBody

@zaid.ahmad try with this

"<html>
<body>
  <p>PFA</p>
  <p>Please find the attached output file & screenshot</p>
  <br>
  <img src='"+path+"' /> 
  <br>
  <img src='"+path1+"' />
  <br>
  <p>Thanks & Regards</p>
  <br>
  <p>ZQ</p>
  <p>This Is an auto-generated e-mail. Please Do Not reply.</p>
  <br>
</body>
</html>
"

@muktadir

Still facing same issue

attach a screenshot of the error and your activity configuration. Also the assign where you have declared the paths of the image

I dont have access to share file due to office premises

@zaid.ahmad,

Tried this?

@muktadir ,

I got the issue and now there are no error but when i send the attachment in body so image is not visible, it is look like a small icon
Now what to do for visible proper in body

Regards
Zaid Qazi

@ashokkarale ,

Hii,

I was try it but not getting understand,
where we need to save the image or how to pass variable as argument

Can u make a sample xaml for requirment

Regards
Zaid Qazi

@zaid.ahmad,

Here you go.

Sub workflow to convert image to Base 64

Main workflow to send email

Change this arrImages values as per your data.

Output:

Code:

EmailDemo.zip (138.4 KB)

Thanks,
Ashok :slight_smile:

@ashokkarale ,

thanks for this, but i dont have access to download the zip file due to security purpose

@zaid.ahmad,

In that case, I would suggest to download it on personal laptop and see the code and implement it similarly.

Sure,
i will try it on my personal laptop
i have seen the @mukeshkala sir tutorials and implemented the same and convert into base64 but still showing there small icon of the pic

regards
Zaid Qazi

1 Like