RedHat 7.3
PHP 4.3 as a module
Apache/1.3.27
Postfix
I just want to execute a simple mail() function but I get a message saying:
Fatal error: Call to undefined function: mail()
The code is here
<?php
$to = "jgarcias@ing-coam.com.mx";
$subject = "mailTest";
$message = "This is a Test!!";
if(mail($to, $subject, $message))
{
echo "<h3>OK</h3>";
}
else
{
echo "<h3>Error</h3>";
}
?>
If i try this:
$mail -s "blah" jsabbagh@fastmail.fm < /etc/passwd
it works fine.
I can't find my php.ini but the phpinfo() says that the sendmail_path is just: -t -i
Any suggestions??