note 51445 deleted from function.mail by danbrown
| From: | danbrown@php.net | Date: | Sat, 25 Apr 2009 15:09:06 +0000 |
| Subject: | note 51445 deleted from function.mail by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-153757@lists.php.net to get a copy of this message | ||
Note Submitter: gardan at gmx dot de
----
An addition to the comment by gordon at kanazawa-gu dot ac dot jp:
In his function encode() he has the following line:
$length = floor($length/2) * 2;
which should actually be
$length = $length - ($length % 4);
This means: $length should not be even, but divisible by 4. The reason is that in base64-encoding 3
8-bit-chars are represented by 4 6-bit-chars. These 4 chars must not be split between two encoded
words, according to RFC-2047.