|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-01-31 11:36 UTC] hayk at softerra dot com
I'm trying to send a UTF-8 encoded e-mail using mb_send_mail() under PHP 4.3.0 with the MBString extension. mb_send_mail() adds the following lines to the e-mail header: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: BASE64 But it doesn't encode the message body into MIME base64 and I'm forced to use mb_send_mail($address, $subject, chunk_split(base64_encode($msg)), $extra_headers); instead of mb_send_mail($address, $subject, $msg, $extra_headers); PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 07:00:01 2025 UTC |
This bug has been really fixed in CVS. Now you can override the hard-coded headers such as Content-Type and Content-Transfer-Encoding by the additional header parameter. example: mb_send_mail("user@example.com", "subject", "any contents", "Content-Type: text/html; charset=utf-8"); I'm afraid the fix won't be available in the next release, but in php5. You can try the latest CVS snapshot (unstable) which you can fetch at http://snaps.php.net/ . Thank you for the report and for helping us make PHP better.