cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ryans32229
Level: Powered On

Embedding image into new email, where image is from previous email

Hi all,

 

I'm currently triggering when an email is received, then trying to grab the attachment from that email and send it out embedded in the body of a new email. Here's my current flow:

 

image.png

 

I want to use HTML in the body of the outgoing email (I have HTML turned on in advanced options). How do I integrate the dynamic content from the incoming email into the HTML of the body of the outgoing email? Testing the above only fills the email with symbols.

 

Thanks

 

 

11 REPLIES 11
Community Support Team
Community Support Team

Re: Embedding image into new email, where image is from previous email

Hi @ryans32229,

 

You couldn't insert the Content dynamic content of the trigger in the Body field of "Send an email" action to Embed image into new email.

 

Embedding image into a email body is not supported in microsoft flow currently,

I afraid that there is no way to achieve your needs in Microsoft Flow currently.

 

If you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

As an alternative way,please take a try to send the email as an attachment of the new email,the sceenshot of the flow as below:

Capture.PNG

 

Best regards,

Alice

ryans32229
Level: Powered On

Re: Embedding image into new email, where image is from previous email

Hi @v-yuazh-msft

 

In this thread they are able to embed an image into the email body: https://powerusers.microsoft.com/t5/General-Flow-Discussion/insert-picture-outlook-body-message/td-p...

 

Are you saying it's not possible for dynamic content from the trigger? In that case could the Flow save the attachment to OneDrive or Sharepoint and then look for it in there, then embed it as in the above thread?

 

Thanks

Community Support Team
Community Support Team

Re: Embedding image into new email, where image is from previous email

 
Community Support Team
Community Support Team

Re: Embedding image into new email, where image is from previous email

Hi @ryans32229,

 

I have made a test on my side, and couldn't acheive to embed an image into the email body following the thread that you mentioned,the image into the email body would always be a red "X", and I afraid that it is not supported in microsoft flow currently.

 

Best regards,

Alice

ryans32229
Level: Powered On

Re: Embedding image into new email, where image is from previous email

Hi @v-yuazh-msft

 

I see, so in the thread I linked, Flow has removed the functionality to embed an image into an email with HTML?

Community Support Team
Community Support Team

Re: Embedding image into new email, where image is from previous email

Hi @ryans32229,

 

Yes, I afraid it is be removed.

 

Best regards,

Alice

sgthompson
Level: Power Up

Re: Embedding image into new email, where image is from previous email

Alice,

Your statement:


 

Embedding image into a email body is not supported in microsoft flow currently,

I afraid that there is no way to achieve your needs in Microsoft Flow currently.

 


seems absolute.  Could you provide a link where this position is clearly stated by Microsoft?

 

Thanks,

Stephen

FlyingDutchman
Level: Powered On

Re: Embedding image into new email, where image is from previous email

The best way is to attach the image as attachment and add some html code to your body where you want to display the image. 

Step 1:

use "Send an email (V2)"

 

Step 2:

click on "</>" in the body field to show the HTML editor.

 

Step 3:
Add the following code: "<img src="header.png" alt="header" />"

 

Step 4:

Add an attachment:

Attachments Name - 1 : header.png

Attachments Content - 1: content of the image

 

You can add as many image as you like 🙂

 

 

 

pcms_tung
Level: Power Up

Re: Embedding image into new email, where image is from previous email

@FlyingDutchman , success to read the msg in o365 using your method. However, when I open the mail in outlook desktop version, it shows X. May I know if there is any solution for this, thanks.

 

PS. I have follow below steps, but still shows X

https://www.nucleustechnologies.com/blog/cannot-see-images-in-outlook-emails-this-post-will-definite...

Highlighted
DevinP
Level: Powered On

Re: Embedding image into new email, where image is from previous email

@FlyingDutchman You have the real answer to this question. This answer worked like a charm and was simple to do. Make sure y'all use binary as the file content. May use the base64ToBinary() expression

Microsoft dorettep
Microsoft

Re: Embedding image into new email, where image is from previous email

This is SO HELPFUL. Thank you so much. 

I am hitting one more issue. My email source has only ONE attachment but it runs twice each time as if it has 2. Flow doesn't let me remove the Apply to each. 
Any idea on how to solve this ?

Best,
Dorette 

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,520)