如何禁用电子邮件中的默认电子邮件地址样式?

时间:2021-01-02 19:39:51

I'm writing an email template using html table. And there is an email address in the content of this email template. When I sent out this email template to test it, It seems that gmail and yahoo mail always add some default style to the email address in the email content, which will make it a blue, underlined, clickable link. But I don't want these style. I just want the email address to be shown as pure text as others. So how should I get rid of these default style for email address?

我正在使用html表编写电子邮件模板。此电子邮件模板的内容中有一个电子邮件地址。当我发送此电子邮件模板进行测试时,似乎gmail和yahoo邮件总是在电子邮件内容的电子邮件地址中添加一些默认样式,这将使其成为带蓝色,带下划线,可点击的链接。但我不想要这些风格。我只是想将电子邮件地址显示为纯文本和其他人一样。那么我应该如何摆脱这些电子邮件地址的默认样式?

2 个解决方案

#1


2  

Usually I will just make it my own link, and style it inline to match the text.

通常我会将它设为我自己的链接,并将其设置为内联样式以匹配文本。

<a href="mailto:email@address.com" style="text-decoration:none;color:#0a0a0a;">email@address.com</a>

Some email clients will also ignore #ffffff and #000000 as link colors so, you can substitute with a slightly off version of your desired color.

某些电子邮件客户端也会忽略#ffffff和#000000作为链接颜色,因此,您可以使用所需颜色的略微偏移版本替换。

#2


1  

I don't think you can. gmail and yahoo add this styling in the client, to make life easier for their users. I don't think there's any way that you can override that without mangling the email address in some way, like adding spaces either side of the @ and . characters.

我认为你不能。 gmail和yahoo在客户端添加这种样式,让用户的生活更轻松。我不认为有任何方法可以覆盖它而不会以某种方式破坏电子邮件地址,比如在@和的任一侧添加空格。字符。

#1


2  

Usually I will just make it my own link, and style it inline to match the text.

通常我会将它设为我自己的链接,并将其设置为内联样式以匹配文本。

<a href="mailto:email@address.com" style="text-decoration:none;color:#0a0a0a;">email@address.com</a>

Some email clients will also ignore #ffffff and #000000 as link colors so, you can substitute with a slightly off version of your desired color.

某些电子邮件客户端也会忽略#ffffff和#000000作为链接颜色,因此,您可以使用所需颜色的略微偏移版本替换。

#2


1  

I don't think you can. gmail and yahoo add this styling in the client, to make life easier for their users. I don't think there's any way that you can override that without mangling the email address in some way, like adding spaces either side of the @ and . characters.

我认为你不能。 gmail和yahoo在客户端添加这种样式,让用户的生活更轻松。我不认为有任何方法可以覆盖它而不会以某种方式破坏电子邮件地址,比如在@和的任一侧添加空格。字符。