1

我正在尝试在 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>
4

2 回答 2

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>
于 2013-05-19T18:32:18.577 回答
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>
于 2013-05-19T18:23:49.297 回答