note 47807 added to function.mail

From: Date: Wed, 01 Dec 2004 05:07:56 +0000
Subject: note 47807 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-81209@lists.php.net to get a copy of this message
I used a simple mail() function and I put a conditional statement to say if the message was sent successful, and each time it says it was sent successful, but I don't get the mail sent. I've checked the address serveral times, (even took it out of a variable). Here is my code: <?php $subject="Tech Mail"; $body=$_POST["comments"]; $done = mail("me@mydomain.com", $subject, $body); if ($done) { echo "Your message was successfully sent"; } else { echo "There was an error sending your message"; } ?> I just can't figure out the problem... ---- Manual Page -- http://www.php.net/manual/en/function.mail.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+47807 Delete -- http://master.php.net/manage/user-notes.php?action=delete+47807&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47807&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47807&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47807&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47807&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47807&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+47807&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#81209) next »