我正在使用带有 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/