Re: mail function problem

From: Date: Wed, 04 Jul 2007 00:38:47 +0000
Subject: Re: mail function problem
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-258210@lists.php.net to get a copy of this message
Try this: <? $email = "test@zz.fr"; $headers = "From: ".$email."\r\n"; $headers .= "X-Mailer: PHP/".phpversion()."\r\n"; if(mail("test2@zz.fr","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/

« previous php.general (#258210) next »