php.net |  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
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:
MUST BE VALID
Solve the problem:
37 + 13 = ?
Subscribe to this entry?

 
 [2003-07-01 16:52 UTC] csimonetto at sfera dot tv
Description:
------------
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("max@sfera.tv", "test", "test");
echo "Sended";
?>

The server configuration is

Redhat 7.3
Apache 1.3.27
PHP 4.3.2
Sendmail

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

Thanks




Reproduce code:
---------------
<?
mail("max@sfera.tv", "test", "test");
echo "Sended";
?>

Expected result:
----------------
Sended

Actual result:
--------------
Fatal error: Call to undefined function: mail() in /var/www/html/tool4cut.com/manager/mailtest.php on line 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

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-2022 The PHP Group
All rights reserved.
Last updated: Thu Dec 01 03:05:53 2022 UTC