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

 

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
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

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