cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Luka84
Helper V
Helper V

Embed Image URL in Send an email (v2) not working

Good day community,

I'm trying to embed an image URL into an email message via the "Send an email (v2)" option in Power Automate (flow)

The image url seems to load correctly, however no image is displayed in the mail body

below is the code i used (variable to store the image)

 

<p>

<br>
 <img src=" @{variables('IMAGEURL')} "   alt="VISITOR IMAGE" width="300" height="300" >
<br><br>

Thanks,<br>
<strong> Reception </strong> <br>
</p>

 

 

Can someone please help 😃

NOTE: The image URL is huge, captured via the PowerApps camera function.

I wasn't able to add the html link due to it's length but if needed I could send it as a notepad attachment but it looks like this:

 

imagesample.png

5 REPLIES 5
Gristy
Resident Rockstar
Resident Rockstar

how does the HTML of the email end up int he client?

 

Keep in mind most clients hide embedded images until allowed.

Hi @Gristy ,

Thanks for responding

Basically it appears as blank, as if the html was never called

I tried the code on an online editor and the image appeared successfully

I'm interested in your latter statement, "Keep in mind most clients hide embedded images until allowed."

Is this true for outlook by default, what can i do to test it?

Thanks again

Luka

 

email sample.png

Gristy
Resident Rockstar
Resident Rockstar

Normally yes but a bar appears to show the image which it has not in your case

If this email is just for internal recipients maybe save it the file to a public document library and insert the url instead of the binary

Hi @Gristy ,

Thanks for responding back. Unfortunately this will not work for me since I am taking a picture of a visitor in Power Apps, and saving it as a URL in SharePoint. Is there no way at all to display an image URL in that format in an outlook message?

I would assume the alternative is to have a flow save my image in a SharePoint document library, and then lookup that image when sending the email? I just worry that it would be a lot of work and beyond my experience which would result in days spent to accomplish this simple functionality. Any guidance would be truly appreciated

Gristy
Resident Rockstar
Resident Rockstar

Hi,

 

That is what i am wonderigng if you can try it.

 

1) add create item (SharePoint)

2) give it a name maybe use a expression for uniqueness (unless you have other variables) soemthing like concat(utcNow(),'.jpg')

3) pass your variable into the file content box

4) you now know the URL and can insert it into the email.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,348)