php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28474 Mail function freezes when empty body
Submitted: 2004-05-21 18:53 UTC Modified: 2004-12-20 23:57 UTC
From: enelson at modulusgroup dot com Assigned:
Status: Closed Package: Mail related
PHP Version: 4.3.6 OS: Windows 2000 ADV SRV Exchange 2K
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: enelson at modulusgroup dot com
New email:
PHP Version: OS:

 

 [2004-05-21 18:53 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-20 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, 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".
 [2004-12-20 21:51 UTC] enelson at modulusgroup dot com
I've tested this with basic code, no complex headers.  It appears to work great.

Thank you
 [2004-12-20 23:57 UTC] derick@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 13:01:29 2024 UTC