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

蓝咒 提交于 2019-12-11 16:24:42

问题


In my EDM, I have:

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

It should look like:

but this is what I get:


回答1:


This is a bug in Office 365 and Outlook.com. When you have any content other than a URL inside a href, Office 365 and Outlook.com will show this content inside the email between brackets. So the following example…

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

… would become :

[Hello]world

The only walk around is to send tests with URL's. When actual sends are done the URL gets populated thru the database or content blocks.

Example during tests you will send tests as:

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


来源:https://stackoverflow.com/questions/57994811/html-email-the-href-attribute-did-not-hidden-in-some-devices

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!