I'm using the mail() and I have no idea what is wrong with it. It seems to be working as I have an if statement to see if it worked. Althogh it appears to be working, When I test it out I fail to get an email in my inbox at excite. Does anyone know why this is happening, here is my code: thanks,
<?php
$varMailHeader = "";
$varFrom = "";
$varTo = "lukemaxpro@excite.com";
$varSubject = "Web Site Comments";
$msgBody = "";
$varFrom = $_POST['sender_name'];
$msgBody = "Name:\t".$varFrom."\n";
$msgBody .= "Email:\t".$_POST['sender_email']."\n";
$msgBody .= "Message\t".$_POST['message'];
$varMailHeader .= "From: ".$varFrom."\r\n";
$varMailHeader .= "Reply-To: ".$varFrom."\r\n";
$varMailHeader .= "X-Mailer: PHP/".phpversion();
if (mail($varTo, $varSubject, $msgBody, $varMailHeader) == TRUE)
print "<br>SUCCESS!<br>";
else
{print "<h2>Did not work</h2><br>";
print"<h3>Please email your comments to <font color=blue>lukemaxpro@excite.com</font></h3>";
}
?>