html - 如何使用 URL 编码将电子邮件中的文本加粗

标签 html email html-email urlencode

我正在使用带有 URL 编码的 mailto 链接来填充电子邮件,我想将电子邮件正文中的某些文本设为粗体。我已经尝试过使用 HTML 标签和星号,谷歌搜索没有找到任何有用的信息。可能吗?

我正在编写一个 chrome 扩展,需要专门与 Outlook 一起使用。

这是我的编码示例:

"mailto:xyz@example.com?Subject=Hello&Body=This%20should%20be%20bold!"

感谢您的帮助!

最佳答案

没有。这根本不可能。

正如您在 RFC 2368 中看到的那样,这根本不可能:

The special hname "body" indicates that the associated hvalue is the body of the message. The "body" hname should contain the content for the first text/plain body part of the message. The mailto URL is primarily intended for generation of short text messages that are actually the content of automatic processing (such as "subscribe" messages for mailing lists), not general MIME bodies.

感谢链接的重复答案中的前两个答案(Quentin 和 Alfonso Marin)。

关于html - 如何使用 URL 编码将电子邮件中的文本加粗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21010296/

相关文章:

python - 需要 Django 用户输入步骤

asp.net - 自动刷新图像(无 javascript、flash、silverlight)

html - MailChimp HTML 电子邮件模板扩展表格行的部分背景

javascript - PHP:如何获得当前的 innerHTML?

jquery - 使用Jquery用html标签包裹动态内容

javascript - HTML CSS 如何去掉首字母而不是首字母?

visual-studio - 以编程方式配置 Outlook 邮件设置?

linux - 发送电子邮件的 Shell 脚本

html - 子 div 背景颜色 HTML 雅虎电子邮件有问题

html - 如何创建具有居中文本的 12 个相等图像的响应式全行框网格?