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

Request #10438 function for encoding of given string
Submitted: 2007-03-21 05:15 UTC Modified: 2009-12-21 09:23 UTC
From: fantomas Assigned: cipri
Status: Closed Package: Mail_Mime (version 1.3.1)
PHP Version: 4.4.4 OS: any
Roadmaps: 1.5.3    
Subscription  


 [2007-03-21 05:15 UTC] fantomas (Matus UHLAR - fantomas)
Description: ------------ Hello, it would be nice to provide a simple function that would mime-encoded string from provided string, charset and encoding. There are many PHP scripts which already do their job, but they send mails with invalid MIME headers, and rewriting them to create mail using object interface of this package would be too much work. Providing simple function to encode provided string would help coders very much to make their mail RFC compliant and not tagged as spam due to invalid header encoding. The function could look like Mime_Encode(string[, encoding[, charset]]) where encoding would be auto (smallest result) quoted-printable or base64, and charset could be detected from current locale settings.

Comments

 [2007-04-21 11:19 UTC] cipri (Cipriano Groenendal)
Planned for version 1.6.0. You can use the encodeRecipient() function for now, which provides /some/ of the functions needed by this, providing you've set the build_params correctly alreayd.
 [2009-12-21 09:23 UTC] alec (Aleksander Machniak)
-Status: Assigned +Status: Closed -Roadmap Versions: 1.6.0 +Roadmap Versions: 1.5.3
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. encodeHeader() method added.