|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9489 The mail() function doesn't return the success or error
Submitted: 2001-02-27 18:03 UTC Modified: 2001-08-31 09:47 UTC
From: Support at Star-Tools dot com Assigned:
Status: Closed Package: Mail related
PHP Version: 4.0.4pl1 OS: solaris and freebsd
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: Support at Star-Tools dot com
New email:
PHP Version: OS:


 [2001-02-27 18:03 UTC] Support at Star-Tools dot com
The mail() function give no return value since 4.0.3.

In earlier version I've got a return value if the mail has been sent or not.

I've tried to set the sendmail_path in the php.ini without success.

Nils Hoyer


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-03 09:56 UTC]
The mail() function returns either TRUE if mail was sent
and FALSE if not. Or what return value did you mean?
Does it always return FALSE?


p.s. Tested with latest CVS and it works just fine.

 [2001-04-13 12:55 UTC] Support at Star-Tools dot com
I get always return FALSE since version 4.0.3.

(Up to version 4.0.2 I got True if the mail was sent.)


Tested on 2001-02-27 with the latest CVS and it's don't works fine.
 [2001-08-31 09:47 UTC]
Works fine with PHP-4.0.6
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Sep 19 01:03:36 2021 UTC