From: thouraud at bondy dot ird dot fr
Operating system: solaris 9
PHP version: 4.3.3
PHP Bug Type: Mail related
Bug description: mail() always return FALSE

The mail() function always return FALSE.
Even if the mail is sent !

Test with the sun's sendmail and postfix 2.0.16.
The mail can go out with no problem.

The result get the same safe_mode or not.

apache 1.3.28 with php as a module

Reproduce code:
$ret = mail ("userdomain.tld",
"sujet " . date("l dS of F Y h:i:s A"),
"From: [email]userdomain.tld[/email]\r\n"
."Reply-To: [email]userdomain.tld[/email]\r\n"
) ;

print "ret = $ret<hr>" ;
if ($ret) {
print 'OK<br>' ;
} else {
print 'KO<br>' ;


Expected result:
if we can send mail to [email]userdomain.tld[/email]
then OK and [email]userdomain.tld[/email] receive the mail.

if any error to sent mail
then KO and no mail !

Actual result:
always KO

but the mail are been received !

Edit bug report at [url][/url]
Try a CVS snapshot (php4): [url][/url]
Try a CVS snapshot (php5): [url][/url]
Fixed in CVS: [url][/url]
Fixed in release: [url][/url]
Need backtrace: [url][/url]
Try newer version: [url][/url]
Not developer issue: [url][/url]
Expected behavior: [url][/url]
Not enough info: [url][/url]
Submitted twice: [url][/url]
register_globals: [url][/url]
PHP 3 support discontinued: [url][/url]
Daylight Savings: [url][/url]
IIS Stability: [url][/url]
Install GNU Sed: [url][/url]
Floating point limitations: [url][/url]