#22064 [Com]: mb_send_mail hard-coded to send text/plain

From: Date: Wed, 30 Jun 2004 10:15:25 +0000
Subject: #22064 [Com]: mb_send_mail hard-coded to send text/plain
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-61550@lists.php.net to get a copy of this message
ID: 22064 Comment by: c dot thiele at ewerk dot com Reported By: jc at mega-bucks dot co dot jp Status: Closed Bug Type: mbstring related Operating System: Red Hat Linux 7.2 PHP Version: 4.3.0 Assigned To: moriyoshi New Comment: This bug is over one year in the list and there is no bugfix in a current 4.3.x release?? Just added to PHP5? Thats really amazing and a problem, you should mention inside the documentation. Previous Comments: ------------------------------------------------------------------------ [2003-02-18 12:55:33] moriyoshi@php.net 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. ------------------------------------------------------------------------ [2003-02-05 07:23:36] jc at mega-bucks dot co dot jp Great. You can closed the report then =) ------------------------------------------------------------------------ [2003-02-05 07:14:30] moriyoshi@php.net This work is in progress. Stay tuned! ------------------------------------------------------------------------ [2003-02-05 01:06:20] jc at mega-bucks dot co dot jp Feature request: Currently mb_send_mail() is hard-coded to send a Content-type of text/plain. Would it be possible to add a way to change this (being able to set it to text/html would be very useful). Either a parameter to mb_send_email or a function such as mb_send_mail_set_content_type(string)? Thanks! Jc ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22064&edit=1

« previous php.bugs (#61550) next »