I have installed php as a CLI on a mandrake 8.0 system. The system has qmail installed on it (listening on port 26). I have made the following modifications to the php.ini file: to reflect this:
sendmail_path = /var/qmail/bin/sendmail -t -i
smtp_port = 26
This has worked on other installations of PHP, however, when I execute the following script, I recieve this error:
Fatal error: Call to undefined function: mail() in ./test.php on line 3
Here is the script I am trying to execute:
#!/usr/local/bin/php -q
<?php
mail ("steve@sbrown.dyndns.org", "Testing PHP", "PHP is functional");
?>
I do not have apache or send mail installed on this box. Is it possible that PHP did not detect sendmail on installation and therefore disabled mail? Any help would be appreciated.