|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24449 Fatal error MAIL()
Submitted: 2003-07-01 16:52 UTC Modified: 2003-07-01 19:25 UTC
From: csimonetto at sfera dot tv Assigned:
Status: Not a bug Package: Mail related
PHP Version: 4.3.2 OS: red hat 7.3
Private report: No CVE-ID: None
 [2003-07-01 16:52 UTC] csimonetto at sfera dot tv
If I try to use the mail function I receive this error:

PHP Fatal error:  Call to undefined function:  mail() in
/home/httpd/html/bug.php on line 2

the script bug.php is

mail("", "test", "test");
echo "Sended";

The server configuration is

Redhat 7.3
Apache 1.3.27
PHP 4.3.2

I try the solution in a related problem, but i have sendmail, the path is correct, and the php.ini is configured (sendmail_path /usr/sbin/sendmail).

Sendmail from line command work correctly, the mail was send !

Please help me


Reproduce code:
mail("", "test", "test");
echo "Sended";

Expected result:

Actual result:
Fatal error: Call to undefined function: mail() in /var/www/html/ on line 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-01 19:25 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

This simply means that the configure script was unable to find the sendmail binary on your system. Make sure it exists and is in the path.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 14 19:01:28 2024 UTC