php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #22064 mb_send_mail hard-coded to send text/plain
Submitted: 2003-02-05 01:06 UTC Modified: 2005-04-06 18:23 UTC
From: jc at mega-bucks dot co dot jp Assigned: moriyoshi
Status: Closed Package: Documentation problem
PHP Version: 4.3.0 OS: Red Hat Linux 7.2
Private report: No CVE-ID:
 [2003-02-05 01:06 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-05 07:14 UTC] moriyoshi@php.net
This work is in progress.
Stay tuned!



 [2003-02-05 07:23 UTC] jc at mega-bucks dot co dot jp
Great. You can closed the report then =)
 [2003-02-18 12:55 UTC] 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.

 [2004-06-30 12:15 UTC] c dot thiele at ewerk dot com
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.
 [2004-06-30 12:38 UTC] moriyoshi@php.net
A sentence in my last comment "..., but in php5" was a bit confusing. That would mean the feature has already been brought into PHP5 betas and there'll be no plan to add it to PHP4 as well. 

Recategolising as a documentation problem.
 [2005-04-06 18:23 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

"Content-Type and Content-Transfer-Encoding headers can be redefined as of PHP 5.0.0. In PHP 4, values defined by mb_language() are always used."
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Mon Apr 21 07:02:06 2014 UTC