cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

How to add line break when sending powerapp text inputs to email

I have a simple powerapp where I gather data entered in text inputs across multiple screens. When the user reaches the last screen and selects on the submit button, the data will be sent to a email address. The onselect property of the submit button currently is:

Office365Outlook.SendEmail(
"myemail",
"form",
TextInput1 &  TextInput2 & TextInput3 ....etc
)

The email received has no line breaks or spaces between the different text inputs, how do I display each input on a separate line?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

@hari3 

Please consider changing your Formula to the following:

Office365Outlook.SendEmailV2(
    "myemail",
    "form",
    TextInput1.Text & "<br>" &  TextInput2.Text & "<br>" & TextInput3.Text ....etc
)

Note: 1) reference the Text property of the TextInput controls.  2) Use the SendEmailV2 function as it will utilize the HTML elements properly.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

3 REPLIES 3
Super User III
Super User III

@hari3 

Please consider changing your Formula to the following:

Office365Outlook.SendEmailV2(
    "myemail",
    "form",
    TextInput1.Text & "<br>" &  TextInput2.Text & "<br>" & TextInput3.Text ....etc
)

Note: 1) reference the Text property of the TextInput controls.  2) Use the SendEmailV2 function as it will utilize the HTML elements properly.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

Perfect, thank you!

Hey Randy,

 

How would I add more email addresses on CC?

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Check out the Power Apps Community Call for January 2021

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (3,730)