Page 1 of 1
how to add click link inside the email body
Posted: Mon Dec 05, 2011 12:49 am
by Lphp
how to add click link inside the email body

Re: how to add click link inside the email body
Posted: Mon Dec 05, 2011 5:20 am
by social_experiment
Send the email in HTML
Code: Select all
<?php
$message ='
<html>
<body>
<a href="www.site.com/page">Go</a>
</body>
</html>';
mail($to, $subject, $message, $headers);
?>
Edit: You could also just add the tag; if the email is sent in plain-text and doesn't go into the junk mail folder it should still be clickable.
Re: how to add click link inside the email body
Posted: Mon Dec 05, 2011 7:35 pm
by Lphp
thank you for the suggestion, but the click link is under
www.site.com/page not the Go ( on email)
Re: how to add click link inside the email body
Posted: Tue Dec 06, 2011 12:39 am
by social_experiment
Lphp wrote:thank you for the suggestion, but the click link is under
www.site.com/page not the Go ( on email)
I don't understand what you mean with this
Re: how to add click link inside the email body
Posted: Fri Dec 09, 2011 6:55 am
by phphelpme
you need to post your little snippet of code so we can see what you are talking about as that reads you see the website link not go on the email and if you want to change that then just change your text for the link between <a></a>.
Post your code and we could help.
