DrTrans Posted July 26, 2010 Share Posted July 26, 2010 [script] if($submit){ ini_set("sendmail_from", "[email protected]"); $message = " Please contact: $name @ $phone <br> "; $mailsubject = "Call Request from website"; $headers = "From: Elitecarolinas.com<$mainemail>\r\n"; $headers .= 'MIME-Version: 1.0' . "\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $sendmail = mail($who,$mailsubject,$message,$headers); echo "<BR/>mail() returned: " . ($sendmail? "TRUE" : "FALSE") . "<BR/>"; echo "$who, $mainemail"; die("$name , Your Request has been sent"); } [/script] I get a TRUE responce. However no mail to the $Who contact Thanks Link to comment https://forums.phpfreaks.com/topic/208922-did-they-nerf-mail/ Share on other sites More sharing options...
trq Posted July 26, 2010 Share Posted July 26, 2010 A return value of true just means that the function succeeded. The only way you'll know if it actually left will be to check the mail server logs, and the only way to check if it arrived would be to look in the inbox, or trash or spam or wherever. Link to comment https://forums.phpfreaks.com/topic/208922-did-they-nerf-mail/#findComment-1091286 Share on other sites More sharing options...
Maq Posted July 26, 2010 Share Posted July 26, 2010 I don't see where $who is defined before the mail() call. What does it echo? Link to comment https://forums.phpfreaks.com/topic/208922-did-they-nerf-mail/#findComment-1091287 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.