bbPress

Simple, Fast, Elegant

bbPress support forums » Requests and Feedback

bb_mail for user registration

(2 posts)

Tags:

  1. momo-i
    Member

    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,

    Posted 4 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.