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

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
Highlighted
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
Resolver II
Resolver II

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

Hi, have you tried <br> ?

& "<br>" &

 

Please mark as answer if this helps (:

 

Highlighted
Frequent Visitor

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:

Highlighted
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

Highlighted
Frequent Visitor

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

That worked!
Thank you very much @timl

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

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