2013-05-19 4 views
1

Я пытаюсь установить ссылку в теле копию html mailto, и я не могу заставить ссылку работать ... вот мой код [1]: http://jsfiddle.net/jsavage/5pZr7/установка ссылки в копии тела html mailto

по какой-то причине ссылка не отображается и не уверен, что я делаю неправильно. Любая помощь будет принята с благодарностью! Благодаря!

<li id="grey-contactus-icon"><a href= "mailto:[email protected]?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> 
+0

Что вы подразумеваете под _link does not show up_? –

+0

Это то, что вы ищете? http://jsfiddle.net/5pZr7/3/ – karthikr

+0

Я думаю, он хочет получить ссылку в теле письма – Ibu

ответ

0

У вас есть другой href, начинающийся с текста href. удалить следующее:

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

Здесь фиксируется:

<li id="grey-contactus-icon"><a href= "mailto:[email protected]?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/

EDIT - ИСПРАВЛЕНО --- два варианта, ПОСМОТРИТЕ НА КОД пыльник

Два варианта:

1) с электронной почтой и ссылка HTML внутри него:

<li id="grey-contactus-icon"><a href= "mailto:[email protected]?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:[email protected]?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/

EDIT 2 - почтовый URL закодирована ссылка

<li id="grey-contactus-icon"><a href= "mailto:[email protected]?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> 
+0

Спасибо за ответ Дори, но нужен другой url, поэтому у меня есть почтовая кнопка на странице, и когда пользователь нажимает кнопку, он открывает почтовый клиент (mailto), а внутри копии тела - это ссылка, которая пользователь может щелкнуть дальше, чтобы получить дополнительную информацию. Надеюсь, что это имеет смысл. – jsavage980

+0

да, но тогда вам нужно проверить URL-адрес кодировки ссылки в сообщении, иначе он не знает, что делать. Я попытаюсь пересмотреть мой ответьте для вас. –

+0

большое спасибо Dory ... очень ценю вашу помощь! – jsavage980

1

Смотрите так: MailTo with HTML body

Это не возможно иметь html в теле сообщения электронной почты, если вы генерировать его с помощью mailto

Ну, вы можете просто написать URL, как часть Эл. адрес. Большинство современных почтовых клиентов автоматически распознают его.

<li id="grey-contactus-icon"><a href= "mailto:[email protected]?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> 
+0

Спасибо draxxxeus за ваш ответ. Пробовал это, но безрезультатно. Цените свою помощь – jsavage980

+0

Вы видите ожидаемую ссылку в т он почтовый орган? – draxxxeus

Смежные вопросы