Re: a small utility function mail_mime_header()

From: Date: Sun, 10 Dec 2000 20:01:37 +0000
Subject: Re: a small utility function mail_mime_header()
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-40759@lists.php.net to get a copy of this message
Quoting Max Derkachev <kot@books.ru>: > 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@horde.org> "If you can't stand the heat, get out of the chicken!" - Baby Blues

« previous php.dev (#40759) next »