a small utility function mail_mime_header()
| From: | Max Derkachev | Date: | Sat, 09 Dec 2000 17:26:21 +0000 |
| Subject: | a small utility function mail_mime_header() | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-40663@lists.php.net to get a copy of this message | ||
I've just made a little function for php, which makes a mime encoded
header for mail from a string, for the cases when international 8 bit
characters are used in the string.
E.g. when sending a mail with the subject in cyrillic, the right way is
to encode the subject. This function uses base64 ("B") encoding. Most
popular e-mail readers use this method to send headers in non-US-ASCII 8
bit charsets, and can decode strings encoded with this method.
For additional info see RFC 2047.
Of course, someone with commit privilege at the PHP repository can
incorporate it in the source tree (I guess the right place is in
ext/standard, where other string functions reside).
--
Best regards,
Max A. Derkachev mailto:kot@books.ru
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-5353
http://www.Books.Ru -- All Books of Russia