web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Adding images to email...
Power Apps
Unanswered

Adding images to email body from powerapps

(0) ShareShare
ReportReport
Posted on by 42

i am trying to add images in my email body in my HTMLText  but i am not able to get how can we achieve this?

Button.OnSelect :


Set(_htmlTable,Concatenate("<table>
<tr>
<td colspan='2' style='Height:50px'>
<img src='Image_Mail.png' alt='Italian Trulli'>
</td>
</tr>
<tr>
<td colspan='2' style='Height:20px'></td>
</tr>
<tr>



</tr>
<tr>
<td style='Height:50px;width:30px;'>
<img src='Recipientname.png' alt='Italian Trulli'>
</td>

</tr>
<tr>
<td style='Height:50px'>
<img src='Recipientdepartment.png' alt='Italian Trulli'>
</td>

</tr>
<tr>
<td style='Height:50px'>
<img src='SenderName.png' alt='Italian Trulli'>
</td>

</tr>
<tr>
<td style='Height:50px'>
<img src='senderDepartment.png' alt='Italian Trulli'>
</td>

</tr>
<tr style='height: 30px;'> </tr>
<tr>

</tr>
<tr style='height: 30px;'> </tr>
<tr>
 
</tr>
<tr>

</tr>
</table>"));

Office365Outlook.SendEmail(_emailRecipientString, "EmailSubject", _htmlTable, {IsHtml:true,Importance:"Normal"});

 

But when i receive the email :

noImage.jpg

 

Categories:
  • Rahber Profile Picture
    1,935 on at

    you need to provide full yours of the images.
    <img src='senderDepartment.png' alt='Italian Trulli'>
    This will look for senderDepartment.png in the outlook and obviously this image is not there you need to use absolute urls such as

     

    <img src='http://somwebsite.com/senderDepartment.png' alt='Italian Trulli'>

     

    Please click Accept as Solution if it resolved your problem or give it a Thumbs Up if it helped you in anyway this will allow other people to search correct solutions effectively.

    Thanks,

    Rahber

  • rajeshvsnk Profile Picture
    42 on at

    If the image stores in sharepoint we can give full url.

    But i am storing these images in media library in the powerapps. Then how can we achieve that?

  • Rahber Profile Picture
    1,935 on at

    Unfortunately your media library is not accessible outside power apps. (unless you send them as attachments) Thats why your pictures will be visible in power apps but if you send that to email or something then it wont show unless you provide a absolute url.

     

    Please click Accept as Solution if it resolved your problem or give it a Thumbs Up if it helped you in anyway this will allow other people to search correct solutions effectively.

    Thanks,

    Rahber

  • rajeshvsnk Profile Picture
    42 on at

    is there any option we can show the images other than saving in sharepoint or any url?

  • FerdinandM Profile Picture
    6 on at

    You can use BASE64 encoding to display your picture in email

     

    At first, create a variable encodedPicture and use JSON function to convert picture into base64 encoded string

     

    Set(encodedPicture,JSON(PictureFromGallery,JSONFormat.IncludeBinaryData))

     

    Then use this variable in your HTML, like:

    <img src="& encodedPicture &" title='my BASE64 encoded picture"/>

     

     

  • Dauntless Profile Picture
    28 on at

    it is not working

  • mlockett Profile Picture
    14 on at

    @FerdinandM Worked great. Thanks!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 320

#3
Mohsin Ali Profile Picture

Mohsin Ali 246

Last 30 days Overall leaderboard