Re: mail function problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Try this:
<?
$email = "test@xxxxx";
$headers  = "From: ".$email."\r\n";
$headers .= "X-Mailer: PHP/".phpversion()."\r\n";
if(mail("test2@xxxxx","essai","test",$headers)) {
   echo "OK: ".ini_get('sendmail_path');
} else {
   echo "NOK: ".ini_get('sendmail_path');
}
?>

   Note

Same result : "NOK /usr/lib/sendmail -t -i"
I think the problem is not in the test script.



Is that the right path? Normally it's /usr/sbin/sendmail not /usr/lib .

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux