PHP Autoresponder Email
Posted: Thu Oct 30, 2014 8:25 pm
I have an email that is sending out a thank you for signing up for book. I am trying to hyperlink text for the book but the email is not working. It either sends with code or does not send at all. If I remove the hyperlink the autoresponder works. Yet this defeats the purpose of the email..
Here is my code.
Thanks for all the replies.
Here is my code.
Thanks for all the replies.
Code: Select all
$header .= "Content-Type: text/html\r\n";
// Subject of confirmation email.
$conf_subject = 'Your Free Book';
// Who should the confirmation email be from?
$conf_sender = 'Your Book <no-reply@something.com>';
$msg = $_POST['Name'] . ",\n\nThank you for interest in our book. To Download <a href=\"http://something.com\">Click Here</a>";
mail( $_POST['Email'], $conf_subject, $msg, 'From: ' . $conf_sender );
}