Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

PNG Image Embed to Email doesn't show despite the same HTML format working with another source

(1) ShareShare
ReportReport
Posted on by

Hi! I'm building a flow which in part takes images from a Microsoft Form and emails this to a mail list with the images embedded.

I've tried these test cases and found what works and what doesn't:

 

Jpg/jpeg -> Use base 64 formatting in HTML img element

Png -> use regular formatting and link of item in HTML img element

 

I've tried base 64 on the PNG files but it doesn't work. I've tried Using a test png taken online with the regular formatting and it worked. However, when using the sharepoint/onedrive link for the item from my Microsoft form, the embedding suddenly doesn't work.

 

I've already tried setting the folder to public, as well as accessing the direct PNG image's link in incognito mode without a Microsoft account logged in. I've also tried using an HTML sandbox online to test if the PNG image from my MS forms loads - and it does. It works everywhere EXCEPT the email body sent by my flow.

 

This is an apply to each structure which takes all images and attachments into account:

Intern_0-1721102878973.png

 

This is the code behind append to image elements array for png files (output is just the link of the image in onedrive)

Intern_1-1721102953388.png

 

This is a sample output of the "compile image embeds", which is an HTML component that combines all image embeds (separated by a <br>) and works in all other HTML sandboxes / IDEs:

Intern_3-1721103373327.png

 

output of the exact component in sandbox:

Intern_4-1721103455033.png

 

 

output of the exact component in email body:

 

 

  • ManishSolanki Profile Picture
    ManishSolanki 15,075 on at
    Re: PNG Image Embed to Email doesn't show despite the same HTML format working with another source

    Hi,

     

    You may refer my blog, but it requires premium connector:

    Method to embed an image in email body using Power Automate (manish-solanki.com)

     

    It also works when size of image exceeds 1 MB & also works for both desktop/web outlook client & Gmail.

     

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard