Re: [PHP-DEV] a small utility function mail_mime_header() From: Chuck Hagenbuch (chuck <email protected>)
Date: 12/10/00

Quoting Max Derkachev <kot <email protected>>:

> 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.

I took a look at this, but it encodes strings that don't need encoding (it
should be smart enough to check), and I got some segfaults from it, so I didn't
look further...

-chuck

--
Charles Hagenbuch, <chuck <email protected>>
"If you can't stand the heat, get out of the chicken!" - Baby Blues

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>