#26036 [NEW]: base64 encoding is wrong
| From: | topitz at definiens dot com | Date: | Thu, 30 Oct 2003 11:22:00 +0000 |
| Subject: | #26036 [NEW]: base64 encoding is wrong | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-49658@lists.php.net to get a copy of this message | ||
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
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[ÙÜ[KO...
I've the same problem with attechments.
--
Edit bug report at http://bugs.php.net/?id=26036&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26036&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26036&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26036&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26036&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26036&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=26036&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26036&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26036&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26036&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26036&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26036&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26036&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26036&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26036&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26036&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26036&r=float