March 2, 2017 10:09 am
The following section of mailto: code wasn’t working on the default Android email client and Gmail client.
<div class="panel-body"> Please contact the <a href="mailto:it.helpline@random.com?Subject=No%20Tiles%20within%20Application&Body=Please%20could%20you%20check%20my%20account%20@(Model.LoggedInUser.Id)%0D%0A%0D%0AMany%20Thanks" target="_top">IT Helpline</a></div>
The reason is down to a simple issue ?Subject and &Body both started with capital letters, replace these to be lowercase ?subject and &body and the following code works across all clients on all platforms.
<div class="panel-body"> Please contact the <a href="mailto:it.helpline@random.com?subject=No%20Tiles%20within%20Application&body=Please%20could%20you%20check%20my%20account%20@(Model.LoggedInUser.Id)%0D%0A%0D%0AMany%20Thanks" target="_top">IT Helpline</a></div>
I’ve tested on :
Android : Default mail, Gmail, Nine
iOS : Safari, Gmail
Windows : Outlook, Gmail
Posted by Raymond Reid
Categories: Windows
Tags:
Mobile Site | Full Site
Get a free blog at WordPress.com Theme: WordPress Mobile Edition by Alex King.
love you man
By Big love on June 20, 2017 at 9:15 am
Hi nice rreading your post
By Emmett on June 15, 2022 at 1:43 am