Hey ,
I'm having a problem getting PHP to send e-mail using the mail function.My server seems to be running PHP fine but no luck with e-mail. I've done exactly what I was told. Is there a chance that it is not enabled on my server? how do I check?
please help if you can!!
here's my PHP script:
<?
$ToEmail = "dougwood@attbi.com";
$ToName = "Doug";
$ToSubject = "oh god please work";
$EmailBody = "Sent By: $userName\nSenders Email: $userAddress\nMessage Sent:\n$comment\n\n";
$EmailFooter="\nThis message was sent by: $userName from $REMOTE_ADDR If you feel that you recieved this e-mail by accident please contact us at www.somesite.com";
$Message = $EmailBody.$EmailFooter;
mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$FirstName." <".$Email.">");
?>