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

Community site session details

Session Id : Tcb+dst3OxPCJRsbPzGC/H
Power Apps - Building Power Apps
Answered

Send single mail to created collection of mails

Like (0) ShareShare
ReportReport
Posted on 27 Sep 2023 10:08:10 by 116

Hello guys,

as you can see in the first screenshot. I created an textinput with the function to add mail addresses to an collection. I did that with "collect". 

Cedric0404_0-1695809111407.png

So my target is it now to have a button some screens later, which sends (by clicking on it) an mail to all the mails in the collection, created before. Do I have to save the mails in a sharepoint list first or how can I do that?

 

 

Thanks for the help!!

I have the same question (0)
  • Verified answer
    ANB Profile Picture
    7,213 Super User 2025 Season 2 on 27 Sep 2023 at 10:17:33
    Re: Send single mail to created collection of mails

    Hi @Cedric0404 , You can store the email to SP list or you can also use local collection and then use Office365Outlook.SendEmail() function to send email.

     

    IF you use local collection, then you can use below code to send email from button click:

     

     

    Office365Outlook.SendEmail(Concat(collection,ColumnName,";"))

     

     

    collection is nothing but your local collection which has email address, columnname is nothing but the column name in collection which holds emails address.

    Please check this for detail syntax :https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/connections/connection-office365-outlook#send-a-message

    Also check this https://powerusers.microsoft.com/t5/Building-Power-Apps/Send-Email-on-Button-Press/td-p/107329

     

    Example: Office365Outlook.SendEmail(inputTo.Text, inputSubject.Text, inputBody.Text, {Attachments:Table({Name:"file1.jpg", ContentBytes:Camera1.Photo, '@odata.type':""}, {Name:"AudioFile", ContentBytes:microphone1.audio })})

     

    NOTE: Make sure to add Office 365 Outlook connector to app first.

     

    ------------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.

    Thanks,
    ANB

  • gcmfaizan Profile Picture
    1,022 on 27 Sep 2023 at 10:16:18
    Re: Send single mail to created collection of mails

    Hi @Cedric0404 ,

     

    Please have a look on this blog to send email from powerappsHow To Send Emails With PowerApps .

    and also have lookon this video PowerApps send email with a button both link will be very helpfull for you.

     

     

    If this is the answer for your question, please mark the post as Solved.
    If this answer helps you in any way, please give it a like.

     

    Thanks!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 885 Most Valuable Professional

#2
developerAJ Profile Picture

developerAJ 571

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 352 Super User 2025 Season 2

Last 30 days Overall leaderboard