php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26036 base64 encoding is wrong
Submitted: 2003-10-30 06:22 UTC Modified: 2003-11-05 00:33 UTC
From: topitz at definiens dot com Assigned:
Status: Closed Package: Mail related
PHP Version: 4.3.3 OS: Win2k
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: topitz at definiens dot com
New email:
PHP Version: OS:

 

 [2003-10-30 06:22 UTC] topitz at definiens dot com
Description:
------------
I use the SendMail() from the php.net (->alex@bartl.net). 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 charset 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.";
$HTML=false;

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

function SendMail($From,$FromName,$To,$ToName,$Subject,$Text,$Html,$AttmFiles){
... see php.net
}

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[??ܘ[K?O...
I've the same problem with attechments.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-05 00:33 UTC] sniper@php.net
This is fixed in PHP 4.3.4.

 [2004-08-19 12:35 UTC] john dot g at envent dot co dot za
I am using PHP 4.3.4 and am still getting the same problem when sending base64 encoded e-mails through IIS5's SMTP server on Win2k.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 08:01:28 2024 UTC