|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25638 Error in mail() function -- possibly in headers
Submitted: 2003-09-23 16:16 UTC Modified: 2003-09-23 17:38 UTC
From: khoker at rjobrien dot com Assigned:
Status: Closed Package: Mail related
PHP Version: 4.3.3 OS: Windows 2000
Private report: No CVE-ID: None
 [2003-09-23 16:16 UTC] khoker at rjobrien dot com
I've discovered a problem with the mail() function for PHP 4.3.3 on Win32.  I can not replicate this issue using 4.3.2 or 4.3.1.  I'm sending a multipart MIME text/html mail.  I'll post the small section of code where I insert the HTML section into the mail message.  I'll be the first to admit there are a lot of things I could be doing wrong here -- but I find it curious that that 4.3.2/1 works fine and 4.3.3 pukes up some strange garbage.

Reproduce code:
// section where I set the HTML headers

$Msg.="Content-Type: text/html;\n\tcharset=\"iso-8859-1\"\n";
$Msg.="Content-Transfer-Encoding: base64\n\n";

Expected result:
Attached you will find AM Grain Comments for 9/23/2003.
Open the attachment to view the report. If you have any questions, feel free to contact ....

Actual result:
Here's the link to your AM Grain Comments for 9/23/2003.
<a href='http://wwwK?^XX???[? ܙ\?X\?? ????[Y[??YLM M?I???X??\?H??Y]?H?\?? ? ?O??Y?[?H


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-23 17:38 UTC]
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at
In case this was a documentation problem, the fix will show up soon at

In case this was a website problem, the change will show
up on the site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Jun 04 21:03:39 2023 UTC