cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

New line in email body

How do I get a new line in an email body as don’t like the long line of information
18 REPLIES 18
Anonymous
Not applicable

It worked!!!

Thank you so much @OneThing Smiley Very Happy

Highlighted
Helper II
Helper II

Hi guys,

 

Is there a way to add text and have a field from my app referencing as the body in the email?

Example I want the body to say: "Please see below reason for Failure" and then have the info in my TextInput 4 box showing underneath or at the side of this? Cant work out how to get this without getting red lines underneath!

 

Cheers.

Highlighted
Continued Contributor
Continued Contributor

Hi @JD2301

 

Normally you would need to use the & Symbol which Joins the Text and fields together.

 

e.g. 

"Reason for Failure: " & TextInput4.text

 

If this doens't make sence then post your code and I can have a look.

 

Thanks,
Nicky

Highlighted
Anonymous
Not applicable

Is this the proper format for multiline email body?

 

 

"Item: " & ItemId &


"Status: " & OrderStatus &


"Qty: " & Qty &


"Quality Order: " & QualityOrderId &

Highlighted

I've had a lot of fun with this particular issue over the last couple of days, as different mail clients seem to respond to mailto links differently...

 

For example, using the Launch function and including the entire mailto string as a single string parameter seems to work OK for Outlook Desktop App, but Android Apps (on a Samsung Phone) don't seem to like it - Outlook (v4.0.45 - 362) can't understand the subject or recipient, or anything in the body beyond any line feed character, and the Gmail App seems to treat the subject and body strings as a single second recipient...

 

I found that using the Launch(address, paramaterName1, ParameterValue1, paramaterName2, ParameterValue2...) format seems to work on both Desktop and Android Apps (Outlook and GMail) alike:

 

Launch("mailto:test@recipient","subject","Email Subject","body","Dear so-and-so, blah blah blah.")

 

As for the New Line/Carriage Returns, that's another interesting story...

It looks like the Char(13) methods work in the Outlook Desktop App, but the "%0D%0A" only works if you use the single parameter method - trying to include that escape code in a parameter of the Launch() function doesn't seem to work - it just gets displayed as is in the email...

 

Unfortunately, I could not get either method to work for links opened in the Android Outlook App -

Char(13) is simply ignored, and "%0D%0A" breaks the entire mailto link, with only the body showing (up to the first line break), and not showing the subject or recipient...

 

I'm wondering if Outlook for Android is automatically stripping out the carriage returns to save screen space...? I seem to remember an option in older versions of Outlook for this sort of thing - be darned if I can find any such option in the current Android outlook App though...

 

James.

Highlighted

Just as a follow up - I thought I'd share my extensive testing...


test_app.jpg

 

I built this very simple app to test all the different ways of achieving a working Mailto Link using the PowerApps Launch() function.

 

My Results can be seen below:

 

 

 

test_app_results.jpg

Highlighted

Did you try with  "\n".

I think it also working.

Highlighted

What do you mean by Single and Multi parameter?

Highlighted

@ABGibson ,

Please post this as a new thread with details of your question

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

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

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (14,003)