#21985 [Ver->Csd]: mb_send_mail() doesn't encode the message body into MIME base64

From: Date: Tue, 18 Feb 2003 18:54:58 +0000
Subject: #21985 [Ver->Csd]: mb_send_mail() doesn't encode the message body into MIME base64
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-33453@lists.php.net to get a copy of this message
ID: 21985 Updated by: moriyoshi@php.net Reported By: hayk at softerra dot com -Status: Verified +Status: Closed Bug Type: mbstring related Operating System: Windows 2000 PHP Version: 4.3.0 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2003-02-01 03:02:55] moriyoshi@php.net Thanks for the report. Changing status [Open => Verified] ------------------------------------------------------------------------ [2003-01-31 11:36:44] 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); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21985&edit=1

« previous php.bugs (#33453) next »