在 GMail 正文中禁用电子邮件的 mailto
我通过 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过将 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.