【发布时间】:2015-05-22 08:12:07
【问题描述】:
我需要在我的电子邮件正文中添加一些 pdf 的 URL
Outlook 可以在正文中创建可单击(ctrl+右键单击)链接。问题是,如果我在 pdf 名称中有空格,则 URL 会中断。
这是我的应用程序中生成的 html。问题仅在于 url 中的 Spaces。我试图用 '%20' 替换 URL 空间服务器端,但这也没有帮助。
<a href="mailto:;somemail@gmail.com;?Subject=SomeSubject&body=http://someUrl/File%20name%202015-05-21%2011-21-08.pdf%0D%0A%0D%0A" title="title" class="btn">Send email</a>
可点击的 URL 将在第一个空格处中断:
http://someUrl/File...
有没有办法对 url 进行编码,以便 Outlook 会在正文中创建正确的链接?
干杯!
【问题讨论】:
标签: html model-view-controller outlook mailto