システム開発とシステムコンサルティングのミリオンウェーブズ
検索

mb_send_mail()で送信メールが文字化けする場合

 日本語のメールを送る場合、ISO-2022-JPでエンコーディングしてから送信する必要があります。

 mail()では internal_encodingでメール送信しますので、通常、文字コードを変換してから送信しないと文字化けしてしまいます。

 mb_send_mail()はその点、自動的に文字コードを変換してくれるのですが、それでも文字化けする場合があります。その際は、

mb_internal_encoding(“utf-8”);
mb_language(“japanese”);

の様に文字コードを指定すると上手く行く場合があります。
PHP

コメントを書く


Warning: Undefined variable $user_ID in /home/millionwaves/millionwaves.com/public_html/wp-content/themes/Millionwaves_4/comments.php on line 80


Warning: Undefined array key 0 in /home/millionwaves/millionwaves.com/public_html/wp-content/plugins/mwp/mwp_related_posts.php on line 30

Warning: Attempt to read property "term_id" on null in /home/millionwaves/millionwaves.com/public_html/wp-content/plugins/mwp/mwp_related_posts.php on line 30

Warning: Undefined variable $excludeclause in /home/millionwaves/millionwaves.com/public_html/wp-content/plugins/mwp/mwp_related_posts.php on line 43

  • これから増やしていきます!

  • Warning: Undefined variable $args in /home/millionwaves/millionwaves.com/public_html/wp-content/plugins/mwp/mwp_related_posts.php on line 23

    Warning: Undefined variable $excludeclause in /home/millionwaves/millionwaves.com/public_html/wp-content/plugins/mwp/mwp_related_posts.php on line 43

  • これから増やしていきます!
  •