Bug #15373 Updated: mail() not working, no error with invalid SMTP or email address
| From: | alonso at loquequeda dot com | Date: | Tue, 02 Jul 2002 06:01:24 +0000 |
| Subject: | Bug #15373 Updated: mail() not working, no error with invalid SMTP or email address | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-12762@lists.php.net to get a copy of this message | ||
ID: 15373
Updated by: alonso@loquequeda.com
Reported By: alonso@loquequeda.com
-Status: Feedback
+Status: Open
Bug Type: Mail related
Operating System: win2000
PHP Version: 4.1.1
New Comment:
I have finally tested with php 4.2.1 and php4-win32-latest-zip and both
work the same. They do not send the email and always immediately return
1.
Script:
ini_set("SMTP","shouldfail");
echo mail("alonso@xxx.net","test","hola");
returns "1"
Using a correct SMTP also returns "1" and doesn't send the email. I
have found no way of sending the email except installing php 4.0.6
which does work.
You said "Error reporting has been improved", how do I use this
improved error reporting?
Previous Comments:
------------------------------------------------------------------------
[2002-06-02 13:52:28] mfischer@php.net
Error reporting has been improved, please try a snapshot from
http://snaps.php.net/win32/php4-win32-latest.zip
------------------------------------------------------------------------
[2002-02-06 18:54:55] mail@egri.de
Hy,
I have this problem too.
I can receiving email but i can´t sending with smtp.
The smtp server ist correct. I tryed any variations in the
config.php but it still doesn´t work.
My server is a Apache.
I have read in the phpinfo.php on my server that´s the with=smtp
registry not exist. So i have downloaded the
Ubeumiau-Php mail-script. It doesn´t work again. It was the same
problem.
PLEASE PLEASE HELP ME...
Greetings from Berlin
jam
------------------------------------------------------------------------
[2002-02-04 21:16:26] alonso@loquequeda.com
I mean 4.10 and 4.1.1
------------------------------------------------------------------------
[2002-02-04 21:15:43] alonso@loquequeda.com
I just tried php 4.0.6 in same machine and it now gives errors when
incorrect smtp. And guess what: it sends emails too when smtp is
correct!
So this is a problem in 4.1.0 and 4.1.0.
------------------------------------------------------------------------
[2002-02-04 21:00:22] alonso@loquequeda.com
I moved a program from winnt4 php 4.0.6 to win2000 php 4.1.1 and now
mail doesn't work.
In fact no matter what I put in SMTP in php.ini or if the email address
is correct, mail() always returns 1. Always, immediately returns 1. It
never sends emails even with correct parameters and SMTP.
If it at least gave an error I would know why it doesn't work.
I tried 4.1.0 and is same thing.
OS is win2000 fresh install with IIS5. Webserver is Apache but php.exe
works the same way.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15373&edit=1