#18723 [Opn->Bgs]: what does mail() function return?
| From: | sander@php.net | Date: | Sun, 04 Aug 2002 14:13:51 +0000 |
| Subject: | #18723 [Opn->Bgs]: what does mail() function return? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-15969@lists.php.net to get a copy of this message | ||
ID: 18723
Updated by: sander@php.net
Reported By: asif@evoknow.com
-Status: Open
+Status: Bogus
Bug Type: Mail related
Operating System: windows2K
PHP Version: 4.2.2
New Comment:
This is what the manual says, and that's correct:
"mail() returns TRUE if the mail was successfully accepted for
delivery, FALSE otherwise."
Previous Comments:
------------------------------------------------------------------------
[2002-08-04 07:45:57] asif@evoknow.com
If that is the case, Don't you think that the manual should be updated
that says: "mail() returns TRUE if the mail is successfully sent, FALSE
otherwise."?
------------------------------------------------------------------------
[2002-08-03 09:17:46] sander@php.net
It should return FALSE if the mailserver, for any reason, doesn't
accept the message. If the mailserver accepts the message but bounces
it, PHP can't do anything about it.
Is this the case?
(BTW: you probably want to try a non-STABLE snapshot from
snaps.php.net, there were many changes to the mail handling stuff on
Windows)
------------------------------------------------------------------------
[2002-08-03 08:13:43] asif@evoknow.com
The mail() function is supposed to return FALSE if it can't send the
mail. But in reality it doesn't do so. It always returns TRUE.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18723&edit=1