php.net |  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
Description:
------------
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.="\n--".$IB."\n";
$Msg.="Content-Type: text/html;\n\tcharset=\"iso-8859-1\"\n";
$Msg.="Content-Transfer-Encoding: base64\n\n";
$Msg.=chunk_split(base64_encode($Html))."\n\n";
$Msg.="\n--".$IB."--\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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-23 17:38 UTC] edink@php.net
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 http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Jul 23 20:01:23 2021 UTC