Re: mb_encode_mimeheader problem
| From: | Moriyoshi Koizumi | Date: | Thu, 27 Mar 2003 17:19:49 +0000 |
| Subject: | Re: mb_encode_mimeheader problem | ||
| References: | 1 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-518@lists.php.net to get a copy of this message | ||
Hi,
Gary Ross <php_i18n@j-w3.com> wrote:
> Hello,
> But it seems that on many/some(?) emailers the \n in "STUFF_?=\n
> =?ISO-2022-JP?B" is interpreted as a new header line, not as part of
> the subject. I'm not very familiar with the exact rfc rules, does the
> choice of \n over other possibilities have an effect?
>
> Should I be doing something like this:
> $subject =
> mb_encode_mimeheader(
> trim(mb_convert_encoding($subject, "ISO-2022-JP","AUTO")),
> 'ISO-2022-JP',
> 'B',
> "\r\n\t "
> );
I've never got a problem with the mails that have such folded headers.
Did you try mb_send_mail() and had no luck with it? I think that's most
likely a MTA problem..
Moriyoshi