#18723 [Fbk->Opn]: what does mail() function return?
| From: | asif at evoknow dot com | Date: | Sun, 04 Aug 2002 11:45:57 +0000 |
| Subject: | #18723 [Fbk->Opn]: what does mail() function return? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-15965@lists.php.net to get a copy of this message | ||
ID: 18723
User updated by: asif@evoknow.com
Reported By: asif@evoknow.com
-Status: Feedback
+Status: Open
Bug Type: Mail related
Operating System: windows2K
PHP Version: 4.2.2
New Comment:
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."?
Previous Comments:
------------------------------------------------------------------------
[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