cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
slabunski
Level: Powered On

Adding Line Break into Launch("mailto:") Body

Hello Everyone!
I have managed to get the app to launch and start writing the email, the email address populates and the subject & body line also is created!
But now im left with a connundrum, i am attempting to add a line break within the body of the email.

 

This is my coding currently:
Launch("mailto:" & "Approvals@group.com"
& "&subject=Please provide authorization for:"
& "&body=
Customer:
Address:
PO #:
Group #:
Total: "
)

This results in the following in the body of the email:

Customer:         Address:          PO #:             Group #:          Total:

My goal is to have it formatted like so:
Customer:        

Address:         

PO #:            

Group #:         

Total:



tried adding char(13) but results are the same.

eg.
Launch("mailto:" & "Approvals@group.ca"
& "&subject=Please provide authorization for:"
& "&body=
Customer: " & Char(13) &
"Address: " & Char(13) &
"PO #: " & Char(13) &
"Group #: " & Char(13) &
"Total: "
)

any ideas out there how someone can add a serperate line break?

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Adding Line Break into Launch("mailto:") Body

Hi @slabunski

I can get this to work by using the escape sequence %0D%0A (see RFC 1738 for more details).

Can you try this to see if it works better for you?

 

 

Launch("mailto:" & "Approvals@group.ca"
& "&subject=
Please provide authorization for:"
& "&body=
Customer: " & "%0D%0A" &
"Address: " & "%0D%0A" &
"PO #: " & "%0D%0A" &
"Group #: " & "%0D%0A" &
"Total: "
)

 

View solution in original post

4 REPLIES 4
AndySid
Level 8

Re: Adding Line Break into Launch("mailto:") Body

Hi, have you tried <br> ?

& "<br>" &

 

Please mark as answer if this helps (:

 

Highlighted
slabunski
Level: Powered On

Re: Adding Line Break into Launch("mailto:") Body

Thanks for your fast reply!
Doesnt seem to work though:


Launch("mailto:" & "Approvals@group.ca"
& "&subject=
Please provide authorization for:"
& "&body=
Customer: " & "<br>" &
"Address: " & "<br>" &
"PO #: " & "<br>" &
"Group #: " & "<br>" &
"Total: "
)

Results in:

Customer:         <br>Address:         <br>PO #:            <br>Group #:         <br>Total:

Super User
Super User

Re: Adding Line Break into Launch("mailto:") Body

Hi @slabunski

I can get this to work by using the escape sequence %0D%0A (see RFC 1738 for more details).

Can you try this to see if it works better for you?

 

 

Launch("mailto:" & "Approvals@group.ca"
& "&subject=
Please provide authorization for:"
& "&body=
Customer: " & "%0D%0A" &
"Address: " & "%0D%0A" &
"PO #: " & "%0D%0A" &
"Group #: " & "%0D%0A" &
"Total: "
)

 

View solution in original post

slabunski
Level: Powered On

Re: Adding Line Break into Launch("mailto:") Body

That worked!
Thank you very much @timl

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,746)