1--TEST-- 2mb_send_mail() test 2 (lang=Japanese) 3--SKIPIF-- 4<?php 5if (substr(PHP_OS, 0, 3) == 'WIN') { 6 die('skip.. Not valid for Windows'); 7} 8if (!function_exists("mb_send_mail") || !mb_language("japanese")) { 9 die("skip mb_send_mail() not available"); 10} 11?> 12--INI-- 13sendmail_path=/bin/cat 14mail.add_x_header=off 15--FILE-- 16<?php 17$to = 'example@example.com'; 18 19/* default setting */ 20mb_send_mail($to, mb_language(), "test"); 21 22/* Japanese (EUC-JP) */ 23if (mb_language("japanese")) { 24 mb_internal_encoding('EUC-JP'); 25 mb_send_mail($to, "�ƥ��� ".mb_language(), "�ƥ���"); 26} 27?> 28--EXPECTF-- 29To: example@example.com 30Subject: %s 31MIME-Version: 1.0 32Content-Type: text/plain; charset=%s 33Content-Transfer-Encoding: %s 34 35%s 36To: example@example.com 37Subject: =?ISO-2022-JP?B?GyRCJUYlOSVIGyhCIEphcGFuZXNl?= 38MIME-Version: 1.0 39Content-Type: text/plain; charset=ISO-2022-JP 40Content-Transfer-Encoding: 7bit 41 42$B%F%9%H(B 43