带有 HTML 正文的 mailto 链接 [英] mailto link with HTML body

查看:42
本文介绍了带有 HTML 正文的 mailto 链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 HTML 文档中有几个 mailto 链接.

I have a couple of mailto links in a HTML document.

<a href="mailto:etc...">

我可以在 hrefmailto: 部分插入 HTML 格式的正文吗?

Can I insert HTML formatted body in the mailto: part of the href?

<a href="mailto:me@me.com?subject=Me&body=<b>ME</b>">Mail me</a>

请注意 (2016) 在 iOS 中,添加 <i><b> 标签是完全没问题的,用于简单的斜体、粗体格式.>

Note that (2016) in iOS, it is perfectly fine to add <i> and <b> tags for simple italic, bold formatting.

推荐答案

正如您在 RFC 中所见6068,这根本不可能:

As you can see in RFC 6068, this is not possible at all:

特殊的 body"表示关联的 是消息的正文.身体"字段值旨在包含第一个文本/纯正文部分的内容信息.身体"伪头字段主要用于生成用于自动处理的短文本消息(例如作为订阅"邮件列表的消息),不适用于一般 MIME身体.

The special <hfname> "body" indicates that the associated <hfvalue> is the body of the message. The "body" field value is intended to contain the content for the first text/plain body part of the message. The "body" pseudo header field is primarily intended for the generation of short text messages for automatic processing (such as "subscribe" messages for mailing lists), not for general MIME bodies.

这篇关于带有 HTML 正文的 mailto 链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆