Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prevent url's from appearing as links in mail clients

Tags:

html

email

I'm sending an HTML mail from my app, this mail contains URLs, is there a way to prevents from mail clients to show these URLs as links?

for example:

<table> <tbody> <tr> <td>http://www.google.com</td> </tr> </tbody> </table> 

will generate" http://www.google.com

instead I want it to generate a static text.

any thoughts?

like image 911
Ran Avatar asked Oct 02 '11 10:10

Ran


People also ask

How do I change a hyperlink to normal text?

Change an existing hyperlinkRight-click anywhere on the link and, on the shortcut menu, click Edit Hyperlink. In the Edit Hyperlink dialog, select the text in the Text to display box. Type the text you want to use for the link, and then click OK.


1 Answers

This is a feature of some mail clients and there's no foolproof way to stop them from doing whatever they want with the message contents.

You could try to trick the mail clients by wrapping the addresses in empty tags and hope that they aren't smart enough to see through it:

<td><span>http</span><span>://</span>www.<span>google.</span>com</td> 
like image 162
JJJ Avatar answered Oct 07 '22 03:10

JJJ