Getting mail() to return false/0
| From: | Paul Reinheimer | Date: | Wed, 15 Dec 2004 01:05:41 +0000 |
| Subject: | Getting mail() to return false/0 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-204372@lists.php.net to get a copy of this message | ||
Hi,
I was working with the mail function today to experiment with sending
a few messages, and threw in the apropriate checks so when mail()
can't send the message the apropriate errors were raised, however, I
discovered I couldn't actually get mail() to return 0. Take the
following call:
mail("dude", "Daily Feed Update", "body");
When I run that exact call (well, I prepend echo, but you get the
idea) it returns 1. I can't for the life of me understand why my MTA
would accept an email with a destination of 'dude'.
Any thoughts?
paul
--
Paul Reinheimer