ID:               40923
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to