|
Re: Log error when mail() returns FALSE [message #29919 is a reply to message #29906] |
Tue, 24 January 2006 18:34 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Return status of the mail() function in unreliable in many situation, testing the return status will lead to many false positives.
FUDforum Core Developer
|
|
|
|
Re: Log error when mail() returns FALSE [message #29932 is a reply to message #29930] |
Tue, 24 January 2006 19:32 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
On many PHP installs you will ALWAYS get negative responses, making logging of these errors utterly pointless. There are atleast 2 reasons in PHP why mail() may return FALSE but send the e-mail in reality.
FUDforum Core Developer
|
|
|
|
|
Re: Log error when mail() returns FALSE [message #35320 is a reply to message #35317] |
Thu, 28 December 2006 14:55 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
This is the case when PHP is compiled with --enable-sigchild flag. This flag activates the code that makes it impossible to determine the returned value of spawned binary. Subsequently mail() which internally spawns sendmail binary claims to fail even though it works.
FUDforum Core Developer
|
|
|