I am trying to insert a hypertext link in to a dynamically generated e-mail. It seems simple enough - but I can't quite get it to work.
I can send an e-mail if I use:
but when I click on it, I get a message from hotmail (which I'm using to check the mail) saying that it can't find their pages on the local server. So I figured that I should insert an http:// at the begginning of the URL to force hotmail to look outside of its local servers.
However, when I use the following code:
I get an e-mail through, but there's no content in it all!
Here's the whole section of the script:
Can anyone let me know what I'm doing wrong?
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: Woolmeister's Kitchen <email@example.com>";
mail($eMail, "Newsletter Subscription", "<font face='Tahoma' size='2' color='#000000'>
Thanks for your subscription to our Newsletter.
<p>You will now receive regular updates regarding future events.<p>
To unsubscribe <a href=www.mydomain.com/unsubscribe.php?eMail=$eMail>click here</a>",$headers);