#20465 [Com]: Mail() always returns a false value
| From: | fab at fluxus dot net | Date: | Mon, 18 Nov 2002 11:23:02 +0000 |
| Subject: | #20465 [Com]: Mail() always returns a false value | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-25175@lists.php.net to get a copy of this message | ||
ID: 20465
Comment by: fab@fluxus.net
Reported By: php@dries.plus.com
Status: Open
Bug Type: Mail related
Operating System: linux
PHP Version: 4.2.2
New Comment:
I've got the same problem with apache 1.3.27 and php 4.2.3 as a
module.
The mail function always return nothing, and i can't find any error
message in my logs files.
I tried to build php as a binary (not an apache module), and in this
form the mail function works fine.
Previous Comments:
------------------------------------------------------------------------
[2002-11-18 03:46:41] php@dries.plus.com
Not much information to add.
I have the following code:
if(mail("somebody@nobody.com","subject","body","From: ..."))
{
echo ("success");
} else {
echo ("fail");
}
This always returns fail even when the email has been send
successfully.
I am running php 4.2.2 on Apache as module.
Using default mail setup etc.
------------------------------------------------------------------------
[2002-11-17 11:46:30] sander@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2002-11-17 11:22:43] php@dries.plus.com
The mail() function always returns a false value, even when it sends
the mail successful.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20465&edit=1