I have created a simple form to test my email capabilities from my new PHP 5.0 setup. I am very new to PHP, but have some experience with C.
So the question is, the script executes, but the mail is not being sent to the recipient, which is me of course for test purposes.
Can you advise on what I can do to resolve this dillema?
Kevin
<?php
$sender_name= $POST[ 'sender_name'];
$sender_email=$POST[ 'sender_email'];
$message=$POST[ 'message'];
$like_site=$POST[ 'like_site'];
$msg = "Sender's Full Name: \t$sender_name\n";
$msg.= "Sender's E-Mail:\t$sender_email\n";
$msg.= "Did You Like the Site?\t$like_site\n";
$msg.= "Additional Message:\t$message\n\n";
$mailheaders = "From: My Web Site\n";
$mailheaders.= "Reply-To: $sender_email\n\n";
mail("example@example.com", "Feedback Form", $msg, $mailheaders);
echo "<H1 align=center>Thank You, $sender_name</H1>";
echo"<P align=\"center\">We appreciate your feed back.</P>";
?>