ID:               25862
 Updated by:       [EMAIL PROTECTED]
 Reported By:      thouraud at bondy dot ird dot fr
-Status:           Open
+Status:           Feedback
 Bug Type:         Mail related
 Operating System: solaris 9
 PHP Version:      4.3.3
 New Comment:

What was the configure line you used to configure PHP?



Previous Comments:
------------------------------------------------------------------------

[2003-10-14 08:26:31] thouraud at bondy dot ird dot fr

Description:
------------
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:
---------------
<?php
  $ret = mail ("[EMAIL PROTECTED]", 
               "sujet " . date("l dS of F Y h:i:s A"),
               "corps\nl2\nl3\n",
               "From: [EMAIL PROTECTED]"
               ."Reply-To: [EMAIL PROTECTED]"
              ) ;

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

?>


Expected result:
----------------
if we can send mail to [EMAIL PROTECTED]
then OK and [EMAIL PROTECTED] 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 this bug report at http://bugs.php.net/?id=25862&edit=1

Reply via email to