我的HTML中有一个mailto链接 . HREF是
<a href="mailto:?to=&body=AAA,&subject=BBB">MAIL</a>
换句话说,我指的是身体和主体,但不指定收件人 .
在Ubuntu的Chrome中,单击此按钮会生成一个包含错误的对话框
Unable to detect the URI-scheme of "mailto:?body.....
请注意,Firefox会针对同一链接正确打开Thunderbird .
如何对此链接进行编码以使其有效?
Chrome 34.0.1847.137 Ubuntu 13.10
3 回答
如果我理解正确的定义,这应该有效:
至少它在OSX上的Chrome 36中有效...
RFC 6068: The 'mailto' URI Scheme
尝试在
mailto:
和_1811793之间添加一个空格,如下所示:甚至像这样添加the space as Unicode:
怎么样
<a href="mailto:?to=%20&body=AAA,&subject=BBB">mail link</a>