note 112237 rejected from function.mail by aharvey

From: Date: Fri, 24 May 2013 18:09:51 +0000
Subject: note 112237 rejected from function.mail by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-194934@lists.php.net to get a copy of this message
Note Submitter: Ron ---- My mail function is not working: <?php $to = 'ronsebastian@gmail.com'; $subject = 'Test mail'; $message = 'Hi this is a test mail!'; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); if(mail($to, $subject, $message, $headers)){ print "SENT"; }else{ print "FAILED!"; } ?> i get failed, what should i do, anything in the php.ini file?

« previous php.notes (#194934) next »