|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-07-01 19:25 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 19:00:01 2025 UTC |
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