cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
slabunski
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

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

Hi, have you tried <br> ?

& "<br>" &

 

Please mark as answer if this helps (:

 

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:

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
Frequent Visitor

That worked!
Thank you very much @timl

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (62,727)