When I set a button's OnSelect to Launch("mailto:example@example.com?subject=Here%20is%20my subject&body=here is my body")
And click the button on desktop (launching Outlook) or iPhone, the mail app opens with the subject = Here+is+my+subject
If I change the '?' to a '&', it works on desktop launching Outlook, but iPhone doesn't work at all (button is clicked, mail app isn't opened)
How can I get spaces in my subject and body working on both Desktop and iOS?
Solved! Go to Solution.
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
Hi @topherslalom,
Thanks for the feedback.
Issue could be reproduced from my side.
Generally the Mailto format should be:
mailto:foo@example.com?cc=bar@example.com&subject=Greetings%20from%20Cupertino!&body=Wish%20you%20were%20here!
Changing the ? to & would have the %20 translated to sapce correctly, and the space would also work without %20.
I will collect this as a feedback from my side.
And I will update here once I got any response.
Besides, have you checked the Office 365 outlook (or the outlook conneciton) connection?
You may take a try with the following function to send the Email:
Office365.SendEmail()
Regards,
Michael
I did find an alternative way using a Flow, but it would be nice to have the Launch("mailto:...") option available as well.
Thanks!
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 resolves my issue as well - THANKS!!!!!!
Awesome 🙂
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
184 | |
51 | |
47 | |
32 | |
32 |
User | Count |
---|---|
264 | |
91 | |
78 | |
68 | |
67 |