Sending email with image in the email

Kindly assist me on this problem.
I trying to send an email with an image embedded in the body of them email as shown below:


The image I am trying to send will change every time the Process runs, as the process is supposed to capture a screenshot of a table in a website and send it through email to intended recipients.
Attached is the workflow I have built:
SendEmailInline.xaml (13.3 KB)
However the email that I received is as such:

The image is supposed to appear in the place where the x is appearing.
I am using the method to change the image to base64
Below is the HTML code used to for the body of the email:

<p><span style=font-size:11pt><span style=background-color:white><span style=font-family:Calibri,sans-serif><strong><span style=font-size:10.5pt><span style=font-family:&quot;Segoe UI&quot;,sans-serif><span style=color:#273139>Dear All/Stakeholders,</span></span></span></strong></span></span></span></p>
<p>&nbsp;</p>
<p><span style=font-size:11pt><span style=background-color:white><span style=font-family:Calibri,sans-serif><span style=font-size:10.5pt><span style=font-family:&quot;Segoe UI&quot;,sans-serif><span style=color:#273139>Please find the summary unclosed Interaction Resolution Time For <strong>(Date amend follow days escalate)</strong></span></span></span></span></span></span></p>
<p><span style=font-size:11pt><span style=background-color:white><span style=font-family:Calibri,sans-serif><span style=font-size:10.5pt><span style=font-family:&quot;Segoe UI&quot;,sans-serif><span style=color:#273139>We are focusing <strong>On Case Area &ndash;Complaint (Active) &amp; To Resolve all cases (highlight RED) By today.</strong></span></span></span></span></span></span></p>
<p><span style= font-size:11pt ><span style= background-color:white ><span style= font-family:Calibri,sans-serif ><span style= font-size:10.5pt ><span style= font-family:&quot;Segoe UI&quot;,sans-serif ><span style= color:#273139 >Kindly refer To the detailed list Of unclosed interactions attached.</span></span></span></span></span></span></p>
<p><span style= font-size:11pt ><span style= background-color:white ><span style= font-family:Calibri,sans-serif ><span style= font-size:10.5pt ><span style= font-family:&quot;Segoe UI&quot;,sans-serif ><span style= color:#273139 >Please Take necessary action To avoid aging more than the target.</span></span></span></span></span></span></p>
<p><span style= font-size:11pt ><span style= background-color:white ><span style= font-family:Calibri,sans-serif ><span style= font-size:10.5pt ><span style= font-family:&quot;Segoe UI&quot;,sans-serif ><span style= color:#273139 >Thank you.</span></span></span></span></span></span></p>
<p>&nbsp;</p>
<p><span style= font-size:11pt ><span style= background-color:white ><span style= font-family:Calibri,sans-serif ><strong><u><span style= font-size:10.5pt ><span style= font-family:&quot;Segoe UI&quot;,sans-serif ><span style= color:#273139 >Billing</span></span></span></u></strong></span></span></span></p>
<img "+"src=""data:image/jpeg;base64Image,"+base64FmtOfPSB+"""/> 
<p>&nbsp;</p>
<p><span style= font-size:11pt ><span style= background-color:white ><span style= font-family:Calibri,sans-serif ><strong><u><span style= font-size:10.5pt ><span style= background-color:white ><span style= font-family:&quot;Segoe UI&quot;,sans-serif ><span style= color:#273139 >Non billing</span></span></span></span></u></strong></span></span></span></p>
<img src=""data:image/png;base64Image,"+base64FmtOfPSNB+"""/>

This is the part of the process where I convert the image to the base64 image.

Please assist me on how to get the image embedded properly and sent out.
Thank you.

Hi @RobinsonFrancis ,

Could you check the below post on conversion of image to base64 string :

Let us know if you are still not able to get the image embedded in email.

@RobinsonFrancis

Please find a detailed explanation here. Please cross verify …and if still issue persists do let us know

Cheers

Hi @RobinsonFrancis

Refer this video Link : Send Inline Image in Outlook Email Body in UiPath | HTML Code in UiPath Email | UiPathRPA - YouTube
(or)

Refer this Post from UiPath : https://uipath-survey.secure.force.com/CaseView/articles/Knowledge/Cannot-see-embedded-images-in-the-sent-email?lang=en_US

Regards,
Kaviyarasu N

Thank you. One of the solutions suggested, use of <img tags with c:id attribute solved my problem.

1 Like

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