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

Helpful resources

Announcements
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.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (3,265)