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
Microsoft
Microsoft

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

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 (4,767)