是否可以在MAILTO链接的正文中添加一个HTML链接 [英] Is it possible to add an HTML link in the body of a MAILTO link
本文介绍了是否可以在MAILTO链接的正文中添加一个HTML链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法添加链接或将打开的电子邮件更改为html电子邮件与文本电子邮件?
如下:
< a href =mailto:test@test.test?body =邮件的第一段。%0A%0第二段%0A%0AThird段落。%0A%0ALink到这里>链接文本到这里< / a>
解决方案
RFC 2368 表示正文
字段应为在 text / plain
格式,所以你不能做HTML。
但即使你使用纯文本尽管如此,一些现代邮件客户端可能会将网址呈现为可点击的链接。
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.
Is there a way to add a link or to change the email opened to an html email vs a text email?
Something like:
<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>
解决方案
Section 2 of RFC 2368 says that the body
field is supposed to be in text/plain
format, so you can't do HTML.
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屋!
查看全文