Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 74020

Gmail App Stripping Out Equals Sign in Mailto Body

$
0
0

I am attempting to create a mailto link which populates the body of the email with the current URL. The problem I am having, is that the gmail android app strips out equals signs, including %3D

Here is the code I am using.

$currentUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}";
$currentUrl = str_replace('&', '%26', $currentUrl);
$currentUrl = str_replace('=', '%3D', $currentUrl);

<a href='mailto:?subject=".$emailsubject."&body=".$currentUrl."' class='actions'>Click to Send</a>

On desktop, it works fine. On mobile, the query strings get cut off and the equals signs do not get included in the email body.

Would anyone be able to assist please, as to how to get the equals into gmail app? Thanks.


Viewing all articles
Browse latest Browse all 74020

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>