在 GMail 正文中禁用电子邮件的 mailto

发布于 2024-12-14 04:42:39 字数 658 浏览 3 评论 0原文

我通过 google smtp 向 gmail 用户发送邮件。 我们使用电子邮件地址作为他们的登录 ID。 当我在邮件正文中发送他们的电子邮件地址时,该地址会显示为邮件至。 例如,我打算显示: [email protected] [作为纯文本] 但他们得到的是 HTML:

<a href="mailto:[email protected]" target="_blank">[email protected]</a>

在某处,我读到替换“@”和“.”用他们的十六进制代码可以解决这个问题,但事实并非如此。

有什么建议吗?

I send mails to gmail users through google smtp.
We use email addresses as their Login Ids.
When I send their email addresses in mail body, the address is shown with mail to.
Example, I intend to show : [email protected] [as plain Text]
But what they get is HTML :

<a href="mailto:[email protected]" target="_blank">[email protected]</a>

Somewhere on SO, I read that replacing '@' and '.' with their hex codes would fix the issue, but it didn't.

Any suggestions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风吹短裙飘 2024-12-21 04:42:39

我通过将 CSS/html 添加到电子邮件地址来破解它,在该地址中我将 mailto 指定为空并删除了链接装饰。

I hacked it by adding my CSS/html to the email address where I specified the mailto as empty and removed the link decoration.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文