htmlemail

Prevent url's from appearing as links in mail clients


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?


Solution

  • 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>