cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Galanopd
Regular Visitor

Insert image in Send Email (V3)

Hi,

 

Is there a way to insert an image in the Email body when sending email using Send Email (V3)?

I have tried <img src="https://imagelink/images/image.png"> but can't get it to work.

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
Galanopd
Regular Visitor

After all I have managed to make it work.

 

The steps I took were

 

1. Upload the image file on Onedrive(Personal)

2. Use Get file content using path from Onedrive(Personal) list of commands, before the Send Email (V3)

3. In the Email body I typed

<img src="data:@{outputs('Get_file_content_using_path')?['body']['$content-type']};base64,@{outputs('Get_file_content_using_path')?['body']['$content']}" />

 

E voila! 

So far tested with Outlook and Gmail and it works fine.

 

Thanks

View solution in original post

4 REPLIES 4
DamoBird365
Super User
Super User

Hi @Galanopd 

 

Take a look @Paulie78's post on doing this here https://www.tachytelic.net/2021/02/power-automate-embed-image-email/

 

It covers all of the options.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cheers,
Damien


P.S. take a look at my new blog here and like & subscribe to my YouTube Channel thanks 😉

@DamoBird365 

Hi,

 

Thank you for your answer but I am afraid that the link refers to "Generally, people want to include images stored within SharePoint, and this will be the basis of this blog post."

 

What if it is not an image within Sharepoint and it is an image on Onedrive(Personal) or an image from an external link to my website.

 

Thank you

Hey @Galanopd 

 

You can embed the base64 image if you are able to get the file content first?  Sounds like you have multiple sources, you might need some logic to handle this.

 

https://www.w3docs.com/snippets/html/how-to-display-base64-images-in-html.html

 

I've actually done something very similar to this here https://www.damobird365.com/awesome-create-charts-via-office-scripts/ where I embed images into HTML, Teams or Email from Excel using Office Scripts.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cheers,
Damien


P.S. take a look at my new blog here and like & subscribe to my YouTube Channel thanks 😉

 

Galanopd
Regular Visitor

After all I have managed to make it work.

 

The steps I took were

 

1. Upload the image file on Onedrive(Personal)

2. Use Get file content using path from Onedrive(Personal) list of commands, before the Send Email (V3)

3. In the Email body I typed

<img src="data:@{outputs('Get_file_content_using_path')?['body']['$content-type']};base64,@{outputs('Get_file_content_using_path')?['body']['$content']}" />

 

E voila! 

So far tested with Outlook and Gmail and it works fine.

 

Thanks

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,504)