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 / Sending emails from an...
Power Apps
Answered

Sending emails from an App

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Trying to learn how to send an email from an app, upon hitting a Submit button.  I can get it to send, but cannot send to two recipients, one from User() (person creating or editing the record) and the other a set email address.  If I put in one or the other, it sends, but I can't get it to send to both.  

 

Also, any links/tips on how to make the email a bit nicer?  I guess I can build it with some HTML on the actual OnSelect button but is there a more 'elegant' way?  With Flows, perhaps?  (I do not know Flows at all, yet, but if this is my answer, I'm willing to dive in and learn.)  

 

Thanks as always!!! 

Categories:
  • WarrenBelz Profile Picture
    156,956 Most Valuable Professional on at

    Hi @Anonymous ,

    Firstly, I assume you are using Office365Outlook.SendEmail for doing this. In the To area, just put

    User().Email & "; OtherAddress@whatever.com"

    and it will send to both.

    As far as making it nicer, yes HTML is the best way to do this. To make it easier, put a HTML text box (I will call it MailBody) - it can be on another screen  and set it out the way you want it to look. The advantage of this is that you can see exactly what is being sent. I actually put the email send button on this screen so the user can review the content and format. Then all you do in the Body area of the email send is

    MailBody.HTMLText

     

    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.

     

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

    Hi @Anonymous ,

    Could you please share a bit more about the formula you used within your app?

     

    If you want to send an email to multiple recipients, the standard formula format as below:

    Office365Outlook.SendEmail(
     "User1@email.com;User2@email.com;User3@email.com", // Multiple email address should be separated with semicolon (;) within a single one string value
     "Subject Text",
     "Body Message",
     {
     IsHtml:true
     }
    )

    On your side, you may need to type the following formula:

    Office365Outlook.SendEmail(
     User().Email & ";AnotherUser@email.com",
     "Subject Text",
     "Body Message",
     {
     IsHtml:true
     }
    )

     

    In addition, if you want to make your email a bit nicer, I agree with you, I think the HTML Tag within the email body could achieve your needs. Please check and see if the following blog would help in your scenario:

    https://powerapps.microsoft.com/en-us/blog/html-email-reporting-with-tabular-data/

    https://www.youtube.com/watch?v=xlZp0U7ZPBM

     

    If you want to send a email using Power Automate flow, please check the following video resource:

    https://www.youtube.com/watch?v=viwUxPmFarY

     

    Regards,

  • WarrenBelz Profile Picture
    156,956 Most Valuable Professional on at

    Thanks @v-xida-msft for confirming the logic of my post.

    @Anonymous , happy to continue to assist with your issue.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you!  I am  going to try this a bit later as something else has come up I must work on first.  But I already see my (silly) mistake in sending the email to multiple parties.  For the prettier HTML email, I will give that a try after this week.  

     

    And thank you as always!

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

    Hi @Anonymous ,

    Please take a try with the solution I provided or @WarrenBelz  provided above, then check if the issue is solved.

     

    If you have solved your problem, please consider go ahead to click "Accept as Solution" identify this thread has been 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 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard