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.PHP Code:<a href='www.mydomain.com'>
However, when I use the following code:
I get an e-mail through, but there's no content in it all!PHP Code:<a href='http://www.mydomain.com'>
Here's the whole section of the script:
Can anyone let me know what I'm doing wrong?PHP Code:$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: Woolmeister's Kitchen <info@woolmeisterskitchen.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);
Thanks alot




Bookmarks