防止url在邮件客户端中显示为链接 [英] Prevent url's from appearing as links in mail clients
本文介绍了防止url在邮件客户端中显示为链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
例如:
< table>
< tbody>
< tr>
< td> http://www.google.com< / td>
< / tr>
< / tbody>
< / table>
而不是我希望它生成静态文本。
任何想法?
解决方案
这是一些邮件客户端的功能,没有万无一失的方法来阻止他们做任何他们想要的使用消息内容。
您可以尝试通过将地址包装在空标签中来欺骗邮件客户端,并希望它们不够聪明,无法透过它: / p>
< td>< span> http< / span>< span>://< / span> www。 < span> google。< / span> com< / td>
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?
解决方案
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>
这篇关于防止url在邮件客户端中显示为链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文