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: "
)

 

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 (:

 

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: "
)

 

slabunski
Level: Powered On

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

That worked!
Thank you very much @timl

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 197 members 5,215 guests
Please welcome our newest community members: