ID:               15373
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Feedback
+Status:           No Feedback
 Bug Type:         Mail related
 Operating System: win2000
 PHP Version:      4.2.1
 Assigned To:      mfischer
 New Comment:

No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".


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

[2002-09-21 10:12:22] [EMAIL PROTECTED]

If I run my script through
http://snaps.php.net/win32/php4-win32-latest.zip with

---8< php.ini ----
SMTP = 
sendmail_from = whoever
error_reporting = E_ALL
display_errors = On

and

----8< mail_15373.php----
<?php
        echo "Sending mail ...\n";

        $retval = mail("nouser", "subject", "body");

        var_dump($retval);
?>

I get

C:\php>cvsdebug\php -c . mail_15373.php
Sending mail ...

Warning: mail() [http://www.php.net/function.mail]: Failed to connect
to mailserver at "" port 25, verify your "SMTP" an
d "smtp_port" setting in php.ini or use ini_set() in mail_15373.php on
line 4
bool(false)

Same if I give some nonsense SMTP host:
C:\php>cvsdebug\php -c . mail_15373.php
Sending mail ...

Warning: mail() [http://www.php.net/function.mail]: Failed to connect
to mailserver at "acbsdflskadfasklfhas-asdfasdfs"
port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use
ini_set() in mail_15373.php on line 4
bool(false)

Please also test http://snaps.php.net/win32/php4-win32-latest.zip

------------------------------------------------------------------------

[2002-09-03 12:23:47] [EMAIL PROTECTED]

I ran into this same problem and had to set my smtp Relay Restrictions
to allow the program to relay the message through the vertual server.

------------------------------------------------------------------------

[2002-07-02 12:46:13] [EMAIL PROTECTED]

Yup, you were right, I didn't understood your concerns.

Expect it to be fixed soon.

------------------------------------------------------------------------

[2002-07-02 12:39:12] [EMAIL PROTECTED]

mfischer, I think you do not understand my situation.
I have in my php.ini:
SMTP = nothing-should-give-error; invalid SMTP
error_reporting =       E_ALL;
display_errors  =       On      ;

Then I have a script with:
//send mail with invalid STMP to invalid address
echo mail("noaddress","test","hola");

It immediately returns "1". Even with invalid SMTP and invalid email it
just says "1" no errors are reported.  Then how am I supposed to test
my SMTP server if mail() always returns 1 and never sends the email? If
I use a correct SMTP and correct address it does the same thing.

I need to make it give some kind of error. Again, if I use php4ts.dll
and php4apache.dll from php4.0.6 it says "Bad Message destination" or
"Failed to Connect" if I put a valid address and keep the invalid SMTP.
With valid address and SMTP the email is sent correctly with 4.0.6.

------------------------------------------------------------------------

[2002-07-02 03:11:31] [EMAIL PROTECTED]

You don't need to "use" the improved error reporting. It has improvied
in that way e.g. when the server returns an error response, you no
longer just get "server error" but the message string the server
'said'.

Are you sure you have error_reporting(E_ALL); so you see the warning
message if mail should generate one?

The only other way I could remotely see to debug this is that you tell
me what your SMTP is and you open it for me to relay so I can do
testings (we can do this in private mail of course).

------------------------------------------------------------------------

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

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

Reply via email to