Skip to main content

Notifications

Community site session details

Community site session details

Session Id : rPjGvWSCjmrxdwxdyVL2ky
Power Apps - Building Power Apps
Answered

mailto command is adding "+" characters to my message

Like (1) ShareShare
ReportReport
Posted on 2 Nov 2016 03:44:51 by

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

Categories:
  • Community Power Platform Member Profile Picture
    on 08 Oct 2019 at 09:00:17
    Re: mailto command is adding "+" characters to my message

    @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)

  • jvargas Profile Picture
    41 on 26 Apr 2019 at 17:18:36
    Re: mailto command is adding "+" characters to my message

    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


     

  • Community Power Platform Member Profile Picture
    on 26 Feb 2018 at 07:40:23
    Re: mailto command is adding "+" characters to my message

     

    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

  • JC75 Profile Picture
    94 on 20 Jul 2017 at 17:25:21
    Re: mailto command is adding "+" characters to my message

    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.

     

     

  • michowl Profile Picture
    Microsoft Employee on 11 Apr 2017 at 19:40:49
    Re: mailto command is adding "+" characters to my message

    @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]

  • Community Power Platform Member Profile Picture
    on 15 Dec 2016 at 22:58:09
    Re: mailto command is adding "+" characters to my message

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

     

    Thanks!

  • NK-CSC Profile Picture
    12 on 15 Dec 2016 at 20:18:27
    Re: mailto command is adding "+" characters to my message

    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

     

     

     

     

  • Community Power Platform Member Profile Picture
    on 15 Dec 2016 at 20:04:18
    Re: mailto command is adding "+" characters to my message

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

     

    MV

  • Community Power Platform Member Profile Picture
    on 15 Dec 2016 at 20:04:01
    Re: mailto command is adding "+" characters to my message

    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.

  • Verified answer
    NK-CSC Profile Picture
    12 on 15 Dec 2016 at 18:10:53
    Re: mailto command is adding "+" characters to my message

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
MS.Ragavendar Profile Picture

MS.Ragavendar 32

#2
Rajkumar_M Profile Picture

Rajkumar_M 16 Super User 2025 Season 1

#2
mmbr1606 Profile Picture

mmbr1606 16 Super User 2025 Season 1

Overall leaderboard