cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GeorgiGeorgiev
Helper II
Helper II

Email HTML content broken image from onedrive

Hello, I am making a flow that sends an e-mail with an image in the body. The image is taken from OneDrive with a link and inserted with the following tags:

<html>
<body>
<p>This is a paragraph.</p>
<img src="https://........sharepoint.com/personal/........_onmicrosoft_com/Documents/Dashboard/Image.png?Web=1">
</body>
</html>

 

GeorgiGeorgiev_0-1669885888421.png

E-mail is sent successfully. The issue is that I receive the following broken image in the e-mail:

GeorgiGeorgiev_1-1669885945813.png

What is causing this? I tried removing the quotations, using a link that is shared for everyone who has the link etc. Nothing seems to be working.

5 REPLIES 5
VJR
Super User
Super User

Hi @GeorgiGeorgiev 

I haven't tried this option with an online image, but can you check the cookbook post I have submitted here.

How to embed an image in Outlook email body in Pow... - Power Platform Community (microsoft.com)

 

It is for embedding a local image file inside the body of an Outlook email.

Embedding an image in email body only works with the use of cid (contentid). Can you check the same by using the image url instead of the physical file and see what happens.

You might need to make some tweaks wherever necessary.

Hello @VJR . Thank you for the reply. Unfortunately It still doesn't work with this setup:

GeorgiGeorgiev_0-1669890240434.png

 

What are the values of FileName and FullAttachment path in your case?

Hi @VJR ,

GeorgiGeorgiev_0-1669891379818.png

And filename gets Balkans.png?Web=1

GeorgiGeorgiev_1-1669891500554.png

 

I tried removing the ?Web=1 but the result is the same.

Hi @GeorgiGeorgiev 

When I used this to this in the Body box it worked very well without any issues

 

<html>
<body>

<h1>Sample Image</h1>

<img src="https://www.shutterstock.com/image-vector/sample-red-square-grunge-stamp-260nw-338250266.jpg" alt="sample image" width="500" height="600">

</body>
</html>

 

You can try this one and see if it works. This will tell whether it is an issue with every url on your machine or just the one that you are using from Sharepoint.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,918)