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