HTML 电子邮件 - href 属性在某些设备中未隐藏

HTML email - The href attribute did not hidden in some devices

在我的 EDM 中,我有:

<p class="my_class" style="cursor: pointer; text-align: center;" >
<a href="{{$my_variable}}" style="font-weight:bold;color:#2897FC;">Verify email</a></p>

它应该看起来像:

但这就是我得到的:

这是 Office 365 and Outlook.com 中的错误。当 href 中有 URL 以外的任何内容时,Office 365 和 Outlook.com 将在括号内的电子邮件中显示此内容。所以下面的例子…

<a href="Hello">world</a>

… 会变成:

[Hello]world

唯一的办法是 发送 和 URL 的测试。实际发送完成后,URL 通过数据库或内容块填充。

在测试期间您将发送测试的示例:

<a href="https://www.google.com/" style="font-weight:bold;color:#2897FC;">Verify email</a></p>