Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.0.0

Request #12557 Use mb_send_mail() if available
Submitted: 2007-11-30 11:04 UTC
From: derernst Assigned:
Status: Open Package: Mail (version 1.1.14)
PHP Version: 5.2.2 OS:
Roadmaps: (Not assigned)    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 10 + 18 = ?

 
 [2007-11-30 11:04 UTC] derernst (Markus Ernst)
Description: ------------ In multilanguage environments working with the mbstring extension is very handy. Anyway, on shared hosting, function overloading is often not available, as mbstring.func_overload cannot be set at runtime but only at system level. In these cases, the Mail classes use the mail() function, though mb_send_mail() would actually be available. I think it would be nice to introduce an option to use mb_send_mail() where it is available.

Comments

 [2009-08-11 01:16 UTC] schmuwi (Uwe Mesecke)
The following patch has been added/updated: Patch Name: use-mb_send_mail-if-possible Revision: 1249935364 URL: http://pear.php.net/bugs/patch-display.php?bug=12557&patch=use-mb_send_mail-if-possible&revision=1249935364&display=1
 [2009-08-11 01:18 UTC] schmuwi (Uwe Mesecke)
Added a patch against version 1.2.0b2. Mail_mail constructor looks for parameter use_mb_send_mail and if it is true and the method mb_send_mail() exists it is used in send() method later.
 [2010-03-08 16:21 UTC] doconnor (Daniel O'Connor)
I'd be a bit more comfortable if you hid the implemenation details behind a driver. IE Mail/mail.php Mail/mbsendmail.php