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

查看:70
本文介绍了具有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>

请注意,在iOS中(2016年),最好添加<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:

特殊的<hfname>"body"表示关联的<hfvalue> 是邮件的正文. "body"字段值旨在 包含内容的第一个文本/纯文本主体部分 信息. "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天全站免登陆