#40923 [Opn->Fbk]: mb_send_mail does not encode subject correctly
| From: | tony2001@php.net | Date: | Mon, 26 Mar 2007 19:18:26 +0000 |
| Subject: | #40923 [Opn->Fbk]: mb_send_mail does not encode subject correctly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-110814@lists.php.net to get a copy of this message | ||
ID: 40923
Updated by: tony2001@php.net
Reported By: quasar at aero dot ist dot utl dot pt
-Status: Open
+Status: Feedback
Bug Type: mbstring related
Operating System: Linux
PHP Version: 5.2.1
New Comment:
Could you please point me to an RFC which says the actual result is
incorrect?
Previous Comments:
------------------------------------------------------------------------
[2007-03-26 16:34:46] quasar at aero dot ist dot utl dot pt
Description:
------------
When trying to send an e-mail with international character in the
subject, mb_send_mail is expected to fully encode the subject string.
However it only encodes the string form the first word containing the
interantional characters on.
Reproduce code:
---------------
// Assuming $to, $message and $headers already defined
$subject = "hello ãll";
mb_send_mail($to, $subject, $message, $headers);
Expected result:
----------------
A fully encoded Subject header, in the form:
Subject: ?UTF-8?B?SOMETHING?=
Actual result:
--------------
Received e-mail relevant headers, as you can see the hello part of the
string, which has no international, characters is left unencoded:
Subject: hello =?UTF-8?B?w6NsbA==?=
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit
Mime-Version: 1.0
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40923&edit=1