php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20465 Mail() always returns a false value
Submitted: 2002-11-17 11:22 UTC Modified: 2002-11-18 06:01 UTC
From: php at dries dot plus dot com Assigned:
Status: Closed Package: Mail related
PHP Version: 4.2.2 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php at dries dot plus dot com
New email:
PHP Version: OS:

 

 [2002-11-17 11:22 UTC] php at dries dot plus dot com
The mail() function always returns a false value, even when it sends the mail successful.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-17 11:46 UTC] 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-18 03:46 UTC] php at dries dot plus dot 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-18 05:23 UTC] fab at fluxus dot net
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.
 [2002-11-18 06:01 UTC] nicos@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 09:01:27 2024 UTC