php - Prevent mobile format conversion of number to phone number link? -


upon registration, sending user confirmation email activation code. problem, when email opened on mobile device (and possibly other platforms) underlined , treated phone number.

here php code sends 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 account , ready use. before first must  activate entering code @ link below.</p> <p class="code">code: '.$act_code.'</p> <p><a href="https://www.website.com">activate account now</a></p> <p class="important">please remember, never ask 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 can see added

<meta name="format-detection" content="telephone=no" /> 

which supposed stop behavior apparently doesn't work email. there else can do?

although appears duplicate question, none of other answers worked me. however, able come solution worked in case.

in <head> of html email, add following inside <style> tags.

a[href^=tel]{text-decoration:none;} 

you can set other styles if desire.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -