ID:               22947
 Updated by:       [EMAIL PROTECTED]
 Reported By:      me at mattbeale dot plus dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Mail related
 Operating System: Windows 2000 SP3
 PHP Version:      4CVS-2003-03-28 (stable)
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Set the relevant php.ini options correctly.




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

[2003-03-28 21:41:10] me at mattbeale dot plus dot com

System Spec:
Pentium 2 350Mhz, 256MB RAM, Windows 2000 Professional SP3, Apache
1.3.27 Win32 PHP/4.3.2.2 RC (20030328 Win32 stable from snaps.php.net -
Build Date: Mar 28 2003 18:11:34) using Apache ISAPI module with GD2
support enabled in php.ini. 

The Problem:
The mail() function in PHP hangs when talking to my ISP mail server,
causing the Apache child process to hang indefinitely and ultimately
requiring it to be closed forcefully by stopping and restarting the
system service. There are never any errors reported by PHP, not even
those of the maximum execution timeout variety, so this would indicate
to me that something is very wrong somewhere. I can reproduce this 100%
and it happens regardless of how the mail function is written, even a
simple <?php mail('[EMAIL PROTECTED]', 'Hello', 'Hello There'); ?> will
cause it to hang.

To try and rectify this problem myself, I have formatted and reinstall
Windows 2000, completely uninstalled and reinstalled both Apache and
PHP several times, tried various recent versions of PHP and tried using
only a very basic httpd.conf/php.ini, with only required settings for
the SMTP support under Windows and it still does it. 

Using a packet-sniffer, I am able to monitor PHP as it is talking to my
ISP's mail server. Unless I'm reading things incorrectly, PHP never
gets past the initial HELO <machine name> command, even though my ISPs
mail server does respond with 250 OK, indicating that it was
successful. PHP blatantly ignores this and instead chooses to sit there
like a lemon, as if nothing ever happened.

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


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

Reply via email to