Re: mail function problem
| From: | Chris | 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 | ||
Is that the right path? Normally it's /usr/sbin/sendmail not /usr/lib . -- Postgresql & php tutorials http://www.designmagick.com/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'); } ?> NoteSame result : "NOK /usr/lib/sendmail -t -i" I think the problem is not in the test script.