[PHP-DEV] Bug #12335 Updated: mail() function returns false but the email was sent.

2001-08-07 Thread sascha . winkler

ID: 12335
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Mail related
Operating System: Sun Solaris 2.6
PHP Version: 4.0.6
New Comment:

I found out, that the problem is not the EX_OK or EX_TEMPFAIL but the sendmail return 
value.
Sendmail (the sendmail qmail wrapper) is returning the value -1 when I call it with 
php 4.0.6.
When I call it with 4.0.4pl than 0 is returned.
What could be the reason for this behaviour?



Previous Comments:


[2001-08-01 05:20:35] [EMAIL PROTECTED]

I had a look on the mail.c sourcecode and I made a change. So I found the part where 
the error appears.
But I do not know why, in version 4.0.4pl1 it is the same code and with this version 
it works.

This is the extract from mail.c where the error appears:

   ret = pclose(sendmail);
#if definded (EX_TEMPFAIL)
   if ((ret != EX_OK)(ret != EX_TEMPFAIL)) {
#else
   if (ret != EX_OK) {
#endif
return 0;
   } else {
return 1;
   }

If I change the 0 to 1 than I get true as response of the mail() function.
So what could be the problem with EX_OK and EX_TEMPFAIL that the same if query is 
working in 4.0.4pl1 and not 
in 4.0.6? Who is EX_OK and EX_TEMPFAIL defined?
 



[2001-07-30 01:42:49] [EMAIL PROTECTED]

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.







[2001-07-27 13:27:28] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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?



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=12335


Edit this bug report at http://bugs.php.net/?id=12335edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12335 Updated: mail() function returns false but the email was sent.

2001-08-01 Thread sascha . winkler

ID: 12335
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Mail related
Operating System: Sun Solaris 2.6
PHP Version: 4.0.6
New Comment:

I had a look on the mail.c sourcecode and I made a change. So I found the part where 
the error appears.
But I do not know why, in version 4.0.4pl1 it is the same code and with this version 
it works.

This is the extract from mail.c where the error appears:

   ret = pclose(sendmail);
#if definded (EX_TEMPFAIL)
   if ((ret != EX_OK)(ret != EX_TEMPFAIL)) {
#else
   if (ret != EX_OK) {
#endif
return 0;
   } else {
return 1;
   }

If I change the 0 to 1 than I get true as response of the mail() function.
So what could be the problem with EX_OK and EX_TEMPFAIL that the same if query is 
working in 4.0.4pl1 and not 
in 4.0.6? Who is EX_OK and EX_TEMPFAIL defined?
 

Previous Comments:


[2001-07-30 01:42:49] [EMAIL PROTECTED]

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.







[2001-07-27 13:27:28] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

works fine on RH Linux 7.  Can anybody with Solaris reproduce this?



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=12335


Edit this bug report at http://bugs.php.net/?id=12335edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12335 Updated: mail() function returns false but the email was sent.

2001-07-29 Thread sascha . winkler

ID: 12335
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

works fine on RH Linux 7.  Can anybody with Solaris reproduce this?



[2001-07-24 08:03:30] [EMAIL PROTECTED]

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 = [EMAIL PROTECTED];
$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=12335edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12335 Updated: mail() function returns false but the email was sent.

2001-07-25 Thread sascha . winkler

ID: 12335
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Mail related
Operating System: Sun Solaris 2.6
PHP Version: 4.0.6
New Comment:

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. 






Previous Comments:


[2001-07-24 17:41:53] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

works fine on RH Linux 7.  Can anybody with Solaris reproduce this?



[2001-07-24 08:03:30] [EMAIL PROTECTED]

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 = [EMAIL PROTECTED];
$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=12335edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12335: mail() function returns false but the email was sent.

2001-07-24 Thread sascha . winkler

From: [EMAIL PROTECTED]
Operating system: Sun Solaris 2.6
PHP version:  4.0.6
PHP Bug Type: Mail related
Bug description:  mail() function returns false but the email was sent.

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 = [EMAIL PROTECTED];
$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 bug report at: http://bugs.php.net/?id=12335edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]