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 / Question about the Sen...
Power Apps
Answered

Question about the SendEmail function?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a form with 7/8 data card values I wish to send by email. The Office365.SendEmail function only allows me to input 3 fields before an error is thrown. There must be a way of sending more than three data card values by email. I can't find this method, but if anyone has a link for the correct method online, could you send it to me?

 

Thanks!

Categories:
I have the same question (0)
  • Verified answer
    CarlosFigueira Profile Picture
    Microsoft Employee on at

    The three (required) parameters of the SendEmail function are the e-mail recipient, e-mail subject and the body of the e-mail message. If you want to send information about multiple cards in an e-mail, you can compose the body of the e-mail using the Concatenate function or the '&' operator. The example below shows one example of that - the value returned by 'Char(10)' is a new line character, so the e-mail below has 4 lines in the body, from 4 different data cards.

    Office365.SendEmail(
     "john@doe.com",
     "Many fields from form",
     "Title: " & DataCardValue1.Text & Char(10) &
     "First Name: " & DataCardValue2.Text & Char(10) &
     "Last Name: " & DataCardValue3.Text & Char(10) &
     "Birthday: " & DateValue1.SelectedDate)

    Hope this helps!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    EDIT: I figured out formatting using IsHTML: true, I am yet to figure out how to send it to multiple email addresses from the same function. Any ideas on how to do this?

     

    Thank you, this is exactly what I was looking for. 

     

    Is there a way to format this? The data card values are written next to each other in the email. Is there a way to tab each data card value? 

     

    Thanks for your help!

  • CarlosFigueira Profile Picture
    Microsoft Employee on at

    Glad you figured out how to format the e-mail body using HTML. To send multiple e-mails, depending on the connector that you are using you can separate the recipients using semicolons:

    Office365.SendEmail(
     "john@doe.com; jane@roe.com; jim@poe.com",
     "Many fields from form",
     "Title: " & DataCardValue1.Text & Char(10) &
     "First Name: " & DataCardValue2.Text & Char(10) &
     "Last Name: " & DataCardValue3.Text & Char(10) &
     "Birthday: " & DateValue1.SelectedDate)

    You can find this information in the reference for the connectors - for example, here is the one for the Office 365 Outlook connector: https://docs.microsoft.com/en-us/connectors/office365/#actions

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Again, thank you for your help. This is all I needed. 

     

    Thank you!

  • jbachman Profile Picture
    40 on at

    @CarlosFigueira- Is there a way to fill the To field by having the person type in an email address? I think your answer here might be the answer I am looking for on the post I just created here, but want to make sure that there is a way to have the user input the TO address rather than having it send to the same person every time.

     

    Thanks!

  • CarlosFigueira Profile Picture
    Microsoft Employee on at

    @jbachman yes, you can get the value for the first parameter to the SendEmail function from a control in your app, where a user would fill it in, like in the example below:

    Office365.SendEmail(
     TextInputRecipient.Text,
     "Many fields from form",
     "Title: " & DataCardValue1.Text & Char(10) &
     "First Name: " & DataCardValue2.Text & Char(10) &
     "Last Name: " & DataCardValue3.Text & Char(10) &
     "Birthday: " & DateValue1.SelectedDate)

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard