cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MAV_CB
Microsoft
Microsoft

mailto command is adding "+" characters to my message

This is a bit strange. I noticed in the past few days that when using the command

 

Launch("mailto:myemail@email.com?subject=Something goes here")

 

my resulting email message subject line reads "Something+goes+here", adding in the "+"s instead of just incorporating the spaces. I've tried using the "%20" escape method but to no avail.

 

Can any one else reproduce this? Is this a known issue with the latest release?

 

Thanks!

 

MV

15 REPLIES 15
meganschu
Frequent Visitor

Interesting. It worked perfectly for me. It's launching in the mail app on iOS.

 

Thanks!

@NK-CSC I tried with the &subject rather than ?subject but iOS Mail just jams the whole thing into the To: line.

 

Launch("mailto:support@email.com&subject=Help with My App")

 

results in:

 

To: mailto:support@email.com&subject=Help with My App

Subject: [blank]

Any update on this?

 

if using Launch("mailto:email@email.com?subject=Something goes here")

 

It opens mail(on win 10 😃 and works but as the + in between the words for subject.

 

if using Launch("mailto:email@email.com&subject=Something goes here")

 

it opens mail(on win 10) but it just ends up with the email addrees including the subject wording all as one and no subject line.

 

 

Anonymous
Not applicable

 

The Launch command takes optional parameters in the following format;

 

Launch("address", "name", "value", "name", "value"....)  where name/value pairs are queries passed to a web URL.

 

We tend to put the whole "mailto:blahblah?subject=etc" into the address field, when actually you should use the Launch optional query parameters to pass in what you need, so;

 

address is the URL containing the mailto command and email address

Each name/value pair is a query parameter with it's value

 

Example:

 

Launch("mailto:bobjones@home.com", "subject", "Here's a subject line", "body", "Hello,

How are you?



Line breaks are just carriage returns and spaces remain spaces!")

 

I've tested this with Chrome and Edge (Edge was giving me headaches originally) and it works fine.  I haven't tested all the RFC stated parameters or attachments yet but this works and no annoying +'s!

 

Hope this helps someone

 

Kind regards,


R

THIS IS THE SOLUTION, THANKS!!!


@Anonymous wrote:

 

The Launch command takes optional parameters in the following format;

 

Launch("address", "name", "value", "name", "value"....)  where name/value pairs are queries passed to a web URL.

 

We tend to put the whole "mailto:blahblah?subject=etc" into the address field, when actually you should use the Launch optional query parameters to pass in what you need, so;

 

address is the URL containing the mailto command and email address

Each name/value pair is a query parameter with it's value

 

Example:

 

Launch("mailto:bobjones@home.com", "subject", "Here's a subject line", "body", "Hello,

How are you?



Line breaks are just carriage returns and spaces remain spaces!")

 

I've tested this with Chrome and Edge (Edge was giving me headaches originally) and it works fine.  I haven't tested all the RFC stated parameters or attachments yet but this works and no annoying +'s!

 

Hope this helps someone

 

Kind regards,


R


 

@NK-CSC Thanks much for the solution but when i use the same... the subject and body appears in the To field itself.....

 

i am using chrome to launch and outlook email.

 

The Code i am using is Launch("mailto:"&DataCardValue29_3.Text&"&subject="&DataCardValue10_3.Text)

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 (84)