#28474 [Opn->Fbk]: Mail function freezes when empty body
| From: | sniper@php.net | Date: | Sun, 12 Dec 2004 23:58:24 +0000 |
| Subject: | #28474 [Opn->Fbk]: Mail function freezes when empty body | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-70100@lists.php.net to get a copy of this message | ||
ID: 28474
Updated by: sniper@php.net
Reported By: enelson at modulusgroup dot com
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Windows 2000 ADV SRV Exchange 2K
PHP Version: 4.3.6
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2004-05-21 18:53:54] enelson at modulusgroup dot com
Description:
------------
I'm working with PHP 4.3.3, but have tested this behavior in HPP 4.3.6
as well. When using the mail function and attempting to send
attachments in HTML email, the message body you send is empty looking
something like the following:
mail("address@somewhere.com","Subject","",$headers);
The mail function will freeze due to the "" for the message body. This
behavior does not occur under php 4.2.3. Past scripts I've written to
post this sort of complex mail that work under this version of PHP
freeze when set to run under PHP 4.3.3.
Did something change? I didn't see anything in the documentation, but
I'm sometimes blind like that.
Thank you for your help,
-Ethan Nelson,
Modulus, LLC
Reproduce code:
---------------
$headers=<complex mail>;
mail("address@somewhere.com","Subject","",$headers);
Expected result:
----------------
I expect the mail function to run and send the mail through our
exchange server.
Actual result:
--------------
The mail function freezes and a PHP hung process appears in the task
manager on the server.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28474&edit=1