Skip to main content

Notifications

Community site session details

Community site session details

Session Id : Pq/QLs2ksC2wfQUprxCs0F
Power Automate - General Discussion
Suggested answer

Need to have multiple embedded Images in my email body

Like (1) ShareShare
ReportReport
Posted on 27 Sep 2024 05:58:55 by 62
I am trying to get my images from supporting documents and have it embedded in email body , am not sure how to get out from this for loop and send multiple images via email, 
 
since I am having a loop, I cannot set the attachment content properly. any help here ?
 
Categories:
  • Wee Teck Profile Picture
    45 on 28 Sep 2024 at 05:16:49
    Need to have multiple embedded Images in my email body

    1. Modify the Loop to Collect Image Data:

    Instead of directly sending an email inside the loop, first collect all the image data (such as their content) into a string or an array. This will allow you to send all the images in a single email.

    2. Base64 Encode the Images:

    To embed images within an email body, you need to convert the images to Base64. Power Automate provides the option to get the file content in Base64 format, which can then be used within HTML <img> tags in the email body.

    3. Ensure Email Format is HTML:

    Make sure that the "Send an email (V2)" action is set to send the email as HTML. In the email body, you can reference the images using the <img> tags with the Base64-encoded content.

    This method will allow you to include multiple images inside one email without having to send multiple emails or attach files directly.

  • Suggested answer
    uchiha1234 Profile Picture
    62 on 28 Sep 2024 at 05:10:24
    Need to have multiple embedded Images in my email body
    Sorted

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - General Discussion

Overall leaderboard
Loading started