#25638 [NEW]: Error in mail() function -- possibly in headers
| From: | khoker at rjobrien dot com | Date: | Tue, 23 Sep 2003 20:16:50 +0000 |
| Subject: | #25638 [NEW]: Error in mail() function -- possibly in headers | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-48009@lists.php.net to get a copy of this message | ||
From: khoker at rjobrien dot com
Operating system: Windows 2000
PHP version: 4.3.3
PHP Bug Type: Mail related
Bug description: Error in mail() function -- possibly in headers
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
MIÏ?ÛXÚÈ\HÈY]ÈH\Ü? ? ØO?Y[ÝH
--
Edit bug report at http://bugs.php.net/?id=25638&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25638&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25638&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25638&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25638&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25638&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25638&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25638&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25638&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25638&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25638&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25638&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25638&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25638&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25638&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25638&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25638&r=float