On 7/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Daniel Brown a écrit :
> On 7/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> I've already checked :
>>
>> - the mail logs : no mail send
>>
>> - and the apache error and access logs : nothing except this :
>>
>> 192.168.0.1 - - [02/Jul/2007:14:07:22 +0200] "GET /~eeeeee/mail.php
>> HTTP/1.1" 200 49291 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; fr;
>> rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4"
>> 192.168.0.1 - - [02/Jul/2007:14:07:22 +0200] "GET
>> /~eeeeee/mail.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200
>> 2524 "http://mysite.domain.do/~eeeeee/mail.php" "Mozilla/5.0 (Windows;
>> U; Windows NT 5.1; fr; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4"
>> 192.168.0.1 - - [02/Jul/2007:14:07:22 +0200] "GET
>> /~eeeeee/mail.php?=SUHO8567F54-D428-14d2-A769-00DA302A5F18 HTTP/1.1" 200
>> 2813 "http://mysite.domain.do/~eeeeee/mail.php" "Mozilla/5.0 (Windows;
>> U; Windows NT 5.1; fr; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4"
>> 192.168.0.1 - - [02/Jul/2007:14:07:22 +0200] "GET
>> /~eeeeee/mail.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200
>> 2146 "http://mysite.domain.do/~eeeeee/mail.php" "Mozilla/5.0 (Windows;
>> U; Windows NT 5.1; fr; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4"
>>
>>
>>
>> Chris a écrit :
>> > [EMAIL PROTECTED] wrote:
>> >> Hi,
>> >>
>> >> I'm running PHP 5.2.3 on Solaris 10 (AMD64).
>> >>
>> >> My mail function doesn't send any mail, the return value of mail
>> >> function is false...
>> >> But sendmail_path value is OK in php.ini, and I've tried to send a
>> >> mail with sendmail on console with the same user (the apache user),
>> >> and everything's ok...
>> >>
>> >> Does anyone have solution ?
>> >
>> > Check your mail logs and your apache logs to see if any errors are
>> > showing up.
>> >
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
> Is it possible for you to provide your code so that we can take a
> look at it for you?
>
Yes, my PHP test code is :
<?
ini_set("display_errors", true);
ini_set("error_reporting", E_ALL);
$Email="[EMAIL PROTECTED]";
$headers = "From: " . $Email . "\r\nX-Mailer: PHP/" . phpversion();
if ( mail("[EMAIL PROTECTED]" , "essai" , "test", $headers) )
echo "OK : ".ini_get('sendmail_path');
else
echo "NOK : ".ini_get('sendmail_path');
?>
Try this:
<?
$email = "[EMAIL PROTECTED]";
$headers = "From: ".$email."\r\n";
$headers .= "X-Mailer: PHP/".phpversion()."\r\n";
if(mail("[EMAIL PROTECTED]","essai","test",$headers)) {
echo "OK: ".ini_get('sendmail_path');
} else {
echo "NOK: ".ini_get('sendmail_path');
}
?>
Note
--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php