Hi, which sense does it make if a function like iconv_mime_encoding() requires an field_name as first argument?
<rfc2822> Header fields are lines composed of a field name, followed by a colon (":"), followed by a field body, and terminated by CRLF. A field name MUST be composed of printable US-ASCII characters (i.e., characters that have values between 33 and 126, inclusive), except colon. </rfc2822> If you use imap_mail() to send the message, you are required to supply a subject argument. If you supply the return value of iconv_mime_encoding() your will get a subject like that (after decoding by receiver): Subject: Subject: Hello Additionally I'd like to say that this iconv_mime_encoding does convert the header without any testing if it is required to encode the string. It will also encode an US-ASCII string. Best Regards, Oliver -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php