I'm using this script in attempt to send a PHP e-mail, but when I try it out the result is a blank page. What am I doing wrong?
PHP Code:
<?php
echo "<p>Thank you, <b>$_POST[nickname]</b>, for your chapter!</p>";
echo "<p>Your e-mail address is: <b>$_POST[email],/b>.</p>";
echo "<p>Your chapter was:<br>";
echo "$_POST[chapter] </p>";
//start building the mail string
$msg = "Name: $_POST[nickname]\n";
$msg .= "E-mail: $_POST[email]\n";
$msg .= "Chapter: $_POST[chapter]\n";
//set up the mail
$recipient = "norman@normantang.net";
$subject = "Chapters";
$mailheaders = "From: My Web Site <norman@normantang.net> \n";
$mailheaders .= "Reply To: $_POST[email]";
//send the mail
mail($recipient, $subject, $msg, $mailheaders);
?>