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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: csimonetto at sfera dot tv
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 03:01:28 2024 UTC