DrTrans Posted July 26, 2010 Share Posted July 26, 2010 [script] if($submit){ ini_set("sendmail_from", "myemail@gmail.com"); $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 Quote 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. Quote 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? Quote Link to comment https://forums.phpfreaks.com/topic/208922-did-they-nerf-mail/#findComment-1091287 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.