在html mailto的正文副本中设置一个链接

时间:2013-05-19 18:20:56

标签: html email

我正在尝试在html mailto的正文副本中设置一个链接,我似乎无法使链接正常工作......这是我的代码[1]:http://jsfiddle.net/jsavage/5pZr7/

由于某种原因,链接没有显示,也不确定我做错了什么。任何帮助将不胜感激!谢谢!

<li id="grey-contactus-icon"><a href= "mailto:info@3cheers.com?subject=info&body=The application beta launch will occur the week of May 28, 2013.  You will be able to sign up then. If you would like us to contact you when the site is live, please click  "href='http://experience.maritzmotivation.com/MoreInfo3Cheers'>here</a></li>

2 个答案:

答案 0 :(得分:1)

请参阅:MailTo with HTML body

如果您使用html

生成电子邮件,则无法在电子邮件正文中添加mailto

好吧,你可以把网址写成电子邮件的一部分。大多数现代邮件客户端都会自动识别它。

<li id="grey-contactus-icon"><a href= "mailto:info@3cheers.com?subject=info&body=The application beta launch will occur the week of May 28, 2013.  You will be able to sign up then. If you would like us to contact you when the site is live, please click  http://experience.maritzmotivation.com/MoreInfo3Cheers here">Click to send email</a></li>

答案 1 :(得分:0)

您在href文本中有另一个href。 删除以下内容:

href='http://experience.maritzmotivation.com/MoreInfo3Cheers'

这里修好了:

<li id="grey-contactus-icon"><a href= "mailto:info@3cheers.com?subject=info&body=The application beta launch will occur the week of May 28, 2013.  You will be able to sign up then. If you would like us to contact you when the site is live, please click ">here</a></li>

jsFiddle修正: http://jsfiddle.net/5pZr7/1/

编辑 - 修复---两个选项,查看代码

两个选项:

1)里面有一封电子邮件和一个html链接:

<li id="grey-contactus-icon"><a href= "mailto:info@3cheers.com?subject=info&body=The 3Cheers     application beta launch will occur the week of May 28, 2013.  You will be able to sign up then. If you would like us to contact you when the site is live, please click &lt;a href=&quot;http://experience.maritzmotivation.com/MoreInfo3Cheers&quot;&gt;this link&lt;/a&gt;">

   Html Link</a></li>

2)内部没有html链接的电子邮件(应该以这种方式在大多数电子邮件客户端中工作!)

 <li id="grey-contactus-icon"><a href= "mailto:info@3cheers.com?subject=info&body=The 3Cheers application beta launch will occur the week of May 28, 2013.  You will be able to sign up then. If you would like us to contact you when the site is live, please click &lt;a href=&quot;http://experience.maritzmotivation.com/MoreInfo3Cheers&quot;&gt;this link&lt;/a&gt;">

   Pure Link</a></li>

更新了提琴手: http://jsfiddle.net/5pZr7/8/

编辑2 - mailto url编码链接

<li id="grey-contactus-icon"><a href= "mailto:info@3cheers.com?subject=info&body=The 3Cheers application beta launch will occur the week of May 28, 2013.  You will be able to sign up then. If you would like us to contact you when the site is live, please click %3Ca%20href%3D%22http%3A%2F%2Fexperience.maritzmotivation.com%2FMoreInfo3Cheers%22%3Ehttp%3A%2F%2Fexperience.maritzmotivation.com%2FMoreInfo3Cheers%3C%2Fa%3E">try this </a></li>