|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
38 + 3 = ?
Subscribe to this entry?

 [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: Mon Sep 20 07:03:37 2021 UTC