BreakHere ...
我想知道是否有可能写一些像%20
(代表一个空格)的东西来换行。所以我希望在我的电子邮件正文中有单独的行。
有任何想法吗?
你应该使用回车%0D
和换行%0A
<a href="mailto:[email protected][email protected]&subject=your subject&body=Text before new line.%0D%0AText after new line.">create email</a>
这在RFC2368中定义,是生成换行符的唯一有效方法。
按照\n
(在\r\n
)的规定,用%0D%0A
替换RFC6068(和section 5),更新mailto
URI Scheme,截至2010年10月(取代RFC2368)。
[...]消息正文中的换行必须用
"%0D%0A"
编码。 实现可以在消息正文中添加最后的换行符,即使正文中没有尾随的"%0D%0A"
[...]
这是RFC的例子(在section 6中)
<mailto:[email protected]?body=send%20current-issue%0D%0Asend%20index>
以上邮件正文对应于:
send current-issue
send index