From: topitz at definiens dot com
Operating system: Win2k
PHP version: 4.3.3
PHP Bug Type: Mail related
Bug description: base64 encoding is wrong

I use the SendMail() from the (-> Till now it
works fine, but now i updated the webserver to IIS5 on Win2k from IIS4 on
NT4, and now the base64 encoding seems to work wrong (HTML and Attachment
part). The SMTP Server is Linux. Mail will received with Outlook.
I tried already to change the cht from iso-8859-1 to utf-8, but it
doesn't becomes better.

This problem i got only with Win2k/IIS5!

Reproduce code:
$TEXT="Hallo, this a test for my email program. Hallo, this a test for
my email program. ....long text with breaks ....
test for my email program. Hallo, this a test for my email program.";

if (SendMail(
"","PHP Apache Webmailer", //sender
"","Tiberius Opitz", //recipient
"Testmail", //subject
$TEXT,$HTML,$ATTM)) echo "Mail send successfull.";

SendMail($From,$FromName,$To,$ToName,$Subject,$Tex t,$Html,$AttmFiles){
.... see

Expected result:
the script should send a mail with multipart data (text/html/attachment)
and print a success message after sending.

Actual result:
I got the email abreviated, but with additional characters (wrong
decoded)like: ܈^H[XZ[ܘ[KO...
I've the same problem with attechments.

Edit bug report at [url][/url]
Try a CVS snapshot (php4): [url][/url]
Try a CVS snapshot (php5): [url][/url]
Fixed in CVS: [url][/url]
Fixed in release: [url][/url]
Need backtrace: [url][/url]
Try newer version: [url][/url]
Not developer issue: [url][/url]
Expected behavior: [url][/url]
Not enough info: [url][/url]
Submitted twice: [url][/url]
register_globals: [url][/url]
PHP 3 support discontinued: [url][/url]
Daylight Savings: [url][/url]
IIS Stability: [url][/url]
Install GNU Sed: [url][/url]
Floating point limitations: [url][/url]