Re: mail function problem

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

 



Daniel Brown a écrit :
On 7/2/07, web2@xxxxxxxxxxxxxx <web2@xxxxxxxxxxxxxx> 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 :
> web2@xxxxxxxxxxxxxx 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="test@xxxxx";
$headers = "From: " . $Email . "\r\nX-Mailer: PHP/" . phpversion();
if ( mail("test2@xxxxx" , "essai" , "test", $headers) )
echo "OK : ".ini_get('sendmail_path');
else
echo "NOK : ".ini_get('sendmail_path');
?>

--
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