Hi. I have a flow which sends an HTML formatted email. The flow works fine and images display in all new versions of Outlook and most email clients on mobile devices. I have an issue with images not displaying in Outlook 2013. There is no banner to download images, it just gives an error:
I am using Get File Content to get the file and then composing with base64 expression.
Is there a workaround to get images to display in older versions of Outlook?
I have read this and it doesn't work at all, not even in new versions of Outlook:
https://www.sjlewis.com/2019/09/17/microsoft-flow-how-to-embed-an-image-in-an-email/
Using a public source appears to be working. Thanks for the advice.
Update: This works great! Using a web server is so much easier than SharePoint.
Sorry, my problem is not with this expression. It works and my email works fine. The only problem is that the images do not display in Outlook 2013. Should I try a public server first and how would my flow change to get the image and compose it?
That should work, but I you are using an incorrect expression above that:
(base64(outputs('Get_my_image')?['body']))
This is base64 encoding something that is already base64. Are you using the "Get file content using path" action? If so try an expression like this instead:
outputs('Get_my_image')?['$content']
My images are all PNG.
I did do a test flow with his blog. I just changed jpeg to png in this string (it keeps changing my : to :):
data:image/jpeg;base64
The emails arrived blank.
The blog post you linked to should work, the only issue I see on that post is that the image type is hard coded as JPG. What format is the image that you are trying to embed?
Yes. If I place them on a public location, how does my flow change? I obviously don't use Get File Content from SharePoint. Also, does the compose expression change?
(base64(outputs('Get_my_image')?['body']))
I responded to someone yesterday about a very similar question. Embedding images in email is not really straightforward and every client supports different things. Ideally it is best to have the image you want to display on a publicly accessible location on the internet, but many people want to use images that are stored within SharePoint.
Is the image that you are trying to display within SharePoint?
WarrenBelz
146,651
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional