bb_mail for user registration
-
Hi all,
I’m using this in Japanese. When the user is registered, mail is garbled. It seems that it is because the mail body is submitted with raw UTF8 (not MIME-encode) also this is because of mail in Japanese(encoded iso-2022-jp) being provided as shown in RFC1468.(See http://www.ietf.org/rfc/rfc1468.txt)
However, it is possible to display it even in Japanese with UTF8 normally by doing appropriate treatment.
1. Add Content-Type header and etc.
$headers[] = “MIME-Version: 1.0”;
$headers[] = “Content-Type: text/plain; Charset=UTF-8”;
$headers[] = “Content-Transfer-Encoding: 8bit”;
2. MIME encodes the header.
use mb_encode_mimeheader().
http://www.php.net/manual/en/function.mb-encode-mimeheader.php
Regards,
- You must be logged in to reply to this topic.