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

1 ACCEPTED SOLUTION

Accepted Solutions
NK-CSC
Frequent Visitor

For what it's worth, the use of the "?" makes the string populate as a query (like what goes into a search engine URL), so instead use:

 

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

 

If you want to use variables from the app, use:

 

Launch("mailto:"& ThisItem.Email&  "&subject=Something goes here")

 

I was able to reproduce your issue and overcome it. Hope it works for you as well.

View solution in original post

15 REPLIES 15
hpkeong
Community Champion
Community Champion

Hi

 

I have been using Launch("mailto...") any problem for months and recently not aware of such issues.

I tried Launch again and I can reproduce the same as you, with + in between two phrases with (with spaces).

 

Hope PG can look into this.

 

TQ

hpkeong

Yes, the same here.

v-yamao-msft
Community Support
Community Support

Hi MAV_CB,

 

It seems that this issue has been fixed now. Please try again with this and let me know if it works on your side.

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Mabel. Unfortunately the issue still persists :(. I'm running version 2.0.560 of the app updated on 11/28

 

Thanks!

 

Mark V.

@MAV_CB, @Lingualizer I can reproduce the same issue. I will try involving other engineers to have a check on it. Thanks for reporting this issue.

NK-CSC
Frequent Visitor

For what it's worth, the use of the "?" makes the string populate as a query (like what goes into a search engine URL), so instead use:

 

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

 

If you want to use variables from the app, use:

 

Launch("mailto:"& ThisItem.Email&  "&subject=Something goes here")

 

I was able to reproduce your issue and overcome it. Hope it works for you as well.

View solution in original post

meganschu
Frequent Visitor

I am using the format you suggest:

Launch("mailto:"& ThisItem.Email&  "&subject=Something goes here")

 

But I am still experiencing the + issue. I also tried the %20 with no success.

Thanks for the reply. Totally worked when I changed out the "?" character for an "&" instead.

 

MV

NK-CSC
Frequent Visitor

What application is the + subject line launching in (Mail,Outlook,etc.)? What is the operating platform (iOS, Android, W10)?

 

Try without the spaces:

 

Launch("mailto:"&ThisItem.Email&"&subject=TEXT HERE")

 

(I would suggest copying the above text and pasting it into notepad to strip any formating or errant characters before inserting it into the app.)

 

The '%20' attempt is likely not going to resolve the issue. That is just a place holder for a space. The issues lies in the fact that the subject string is not being properly interpreted as a text string.

 

I would say update the code, update the data sources, save the app, wait about 5-10 minutes, then relaunch the application from your platform (make sure it reacquires the app file) and try again.

 

Good Luck

 

 

 

 

Helpful resources

Announcements
User Groups Public Preview

Join us for our User Group Public Preview!

Power Apps User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (25,640)