web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Send e-mail with image...
Power Apps
Answered

Send e-mail with image attachments from Sharepoint list..

(0) ShareShare
ReportReport
Posted on by 29

Hi, 

 

My name is Marcus and I am pretty new to PowerApps.

 

I am trying to send emails with Office365.SendEmail using the script: Office365.SendEmail((User().Email & ";**My E-mail**," )&ccemailbox.Text&"","Order - " & Gallery1.Selected.'Site Name',HtmlText3.HtmlText,{IsHtml:true});

 

I have a list in Sharepoint with images stored and I want to send them as attachments to this e-mail. 

 

Could you give me any ideas? 

 

I am trying to create a collection with the images, but is not working.

 

Thank you

 

Regards

 

Marcus Ramos

Categories:
  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Hi Marcus,

     

    There's a great thread that covers this here, and I think you will find it very useful: 

    https://powerusers.microsoft.com/t5/Building-Power-Apps/send-image-via-email/td-p/103464

     

    Cheers,

    ManCat

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @marcusramos ,

    Could you please share a bit more about the SP List with images that you mentioned?

    Do you store the images in a SP Library or store images in a SP List?

     

    If you want to send an email with attachments, please check and see if the following article would help in your scenario:
    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/connections/connection-office365-outlook#send-a-message-with-an-attachment

     

    If you want to send an email with multiple images files as attachments, please consider take a try with the following workaround:

    1. Add a Gallery control (ImageGallery) in your app, connect it to your Images SP List, then add a Image control (Image1) in it to display image.

    2. Set the OnSelect property of the "Send Email" button to following:

    Office365.SendEmail(
     (User().Email & ";**My E-mail**," )&ccemailbox.Text&"",
     "Order - " & Gallery1.Selected.'Site Name',
     HtmlText3.HtmlText,
     {
     IsHtml: true,
     Attachments: ForAll(
     ImageGallery.AllItems,
     {
     Name: FileNameColumn, // FileNameColumn is from your Image SP List
     ContentBytes: Image1.Image, // Image1 is the Image control in the ImageGallery
     '@odata.type': ""
     }
     )
     }
    );

     

    Please take a try with above solution, then check if the issue is solved.

     

    Best regards,

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard