是否可以在 MAILTO 链接的正文中添加 HTML 链接 [英] Is it possible to add an HTML link in the body of a MAILTO link
本文介绍了是否可以在 MAILTO 链接的正文中添加 HTML 链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不必过多地处理 mailto 链接.但是,如果可能的话,我现在需要在 mailto 的正文中添加一个链接.
I have not had to mess with mailto links much. However I now need to add a link in the body of a mailto if it is possible.
有没有办法添加链接或将打开的电子邮件更改为 html 电子邮件与文本电子邮件?
Is there a way to add a link or to change the email opened to an html email vs a text email?
类似于:
<a href="mailto:test@test.test?body=The message's first paragraph.%0A%0aSecond paragraph.%0A%0AThird Paragraph.%0A%0ALink goes here">Link text goes here</a>
推荐答案
RFC 2368 说 body
字段应该是 text/plain
格式,所以你不能做 HTML.
Section 2 of RFC 2368 says that the body
field is supposed to be in text/plain
format, so you can't do HTML.
然而,即使您使用纯文本,一些现代邮件客户端也可能会将 URL 呈现为可点击的链接.
However even if you use plain text it's possible that some modern mail clients would render a URL as a clickable link anyway, though.
这篇关于是否可以在 MAILTO 链接的正文中添加 HTML 链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文