Bug #12335 Updated: mail() function returns false but the email was sent.

From: Date: Mon, 30 Jul 2001 05:42:50 +0000
Subject: Bug #12335 Updated: mail() function returns false but the email was sent.
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-61421@lists.php.net to get a copy of this message
ID: 12335 User updated by: sascha.winkler@ks.sel.alcatel.de Reported By: sascha.winkler@ks.sel.alcatel.de Old Status: Feedback Status: Open Bug Type: Mail related Operating System: Sun Solaris 2.6 PHP Version: 4.0.6 New Comment: This was a misunderstanding. I have the problems with version 4.0.6. But this machine is not on the internet. Because it's our testmachine. Our livesystem thats on the internet has version 4.0.4 and we want to update this machine to 4.0.6 but we can't do that as long as we have the problem with the mail function. The both systems are exactly the same. I wrote this only to explain why I can't put the test script on the internet. Previous Comments: ------------------------------------------------------------------------ [2001-07-27 13:27:28] sniper@php.net So which version of PHP are you using? In your comments you say 4.0.4 but in the headers there is 4.0.6?? ------------------------------------------------------------------------ [2001-07-25 02:55:32] sascha.winkler@ks.sel.alcatel.de I can't put this script to the internet, because I test it only on a fallback server that is currently not avaliable via the internet. On our live system that is in the internet we still use an older version (4.0.4), because of the problem with the mail() function in version 4.0.4. Some more information: I use the sendmail wrapper from qmail. In the php.ini file the I have made the following entry: sendmail_path = "/usr/lib/sendmail -t" To update apache to the new php version I replaced only the libphp4.so file. ------------------------------------------------------------------------ [2001-07-24 17:41:53] andy@php.net Since everybody else that has tried this says it works fine, can you put this script on the internet so that I can see this happen? ------------------------------------------------------------------------ [2001-07-24 08:49:13] andy@php.net works fine on RH Linux 7. Can anybody with Solaris reproduce this? ------------------------------------------------------------------------ [2001-07-24 08:03:30] sascha.winkler@ks.sel.alcatel.de I had first the bug with id 12024 and I have fixed it like described in the bug report. Now I can send mails, but the mail() function returns false altough the mail was sent. I use the following script to test the mail() function. <?php $mail_to = "sascha.winkler@t-online.de"; $mail_subject = "PHP test mail() gesendet obwohl failed gemeldet."; $mail_body = " i hope that this mail() function works ! \n"; $mail_body .= " this is supposed to come on the second line \n"; $mail_body .= " and this on the third line \n"; if (mail($mail_to, $mail_subject, $mail_body)) echo "Successfully sent the email \"$mail_subject\" to $mail_to ."; else echo "Failed to send the e-mail \"$mail_subject\"." ; ?> ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=12335&edit=1

« previous php.dev (#61421) next »