Upon registration, I am sending the user a confirmation email with an activation code. The problem, is that when the email is opened on a mobile device (and possibly other platforms) it is underlined and treated as a phone number.
Here is the PHP code that sends the email:
$subject = "website registration";
$body = '
<html>
<head>
<meta name="format-detection" content="telephone=no" />
<style>
.code {margin-bottom: 0; padding: 5px; background-color: #82caff;}
.important {font-weight: bold;}
</style>
</head>
<body>
<p>We have created your account and soon it will be ready to use. But before first you must
activate it entering your code at the link below.</p>
<p class="code">code: '.$act_code.'</p>
<p><a href="https://www.website.com">Activate your account now</a></p>
<p class="important">Please remember, we will never ask for your account information</p>
</body>
</html>
';
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$headers .= 'From: <support@website.com>' . "\r\n";
mail($email,$subject,$body,$headers);
As you can see I added
<meta name="format-detection" content="telephone=no" />
which is supposed to stop this behavior but apparently it doesn't work for email. Is there something else I can do?