note 51445 added to function.mail

From: Date: Thu, 31 Mar 2005 02:41:37 +0000
Subject: note 51445 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-87225@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/function.mail.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+51445 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51445&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51445&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51445&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51445&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51445&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+51445&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#87225) next »