note 47807 deleted from function.mail by betz
| From: | betz@php.net | Date: | Wed, 01 Dec 2004 14:43:10 +0000 |
| Subject: | note 47807 deleted from function.mail by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-81222@lists.php.net to get a copy of this message | ||
Note Submitter: Elvin
----
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...
----
Reason: useless note