zaid.ahmad
(Qazi Zaid Ahmad)
September 23, 2024, 10:50am
1
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
(Qazi Zaid Ahmad)
September 23, 2024, 1:04pm
4
@muktadir
How to pass srPreformatted text
c 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>
"
zaid.ahmad
(Qazi Zaid Ahmad)
September 23, 2024, 1:21pm
7
@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>
"
attach a screenshot of the error and your activity configuration. Also the assign where you have declared the paths of the image
zaid.ahmad
(Qazi Zaid Ahmad)
September 23, 2024, 1:56pm
11
I dont have access to share file due to office premises
zaid.ahmad
(Qazi Zaid Ahmad)
September 24, 2024, 5:46am
13
@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
zaid.ahmad
(Qazi Zaid Ahmad)
September 24, 2024, 5:52am
14
@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
(Qazi Zaid Ahmad)
September 24, 2024, 10:44am
16
@ashokkarale ,
thanks for this, but i dont have access to download the zip file due to security purpose
ashokkarale
(Ashok Karale)
September 24, 2024, 11:01am
17
@zaid.ahmad ,
In that case, I would suggest to download it on personal laptop and see the code and implement it similarly.
zaid.ahmad
(Qazi Zaid Ahmad)
September 24, 2024, 12:00pm
18
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