1--TEST-- 2mb_send_mail() test 7 (lang=Korean) 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("Korean")) { 9 die("skip mb_send_mail() not available"); 10} 11if (!@mb_internal_encoding('ISO-2022-KR')) { 12 die("skip ISO-2022-KR encoding is not available on this platform"); 13} 14?> 15--INI-- 16sendmail_path=/bin/cat 17mail.add_x_header=off 18--FILE-- 19<?php 20$to = 'example@example.com'; 21 22/* default setting */ 23mb_send_mail($to, mb_language(), "test"); 24 25/* Korean */ 26if (mb_language("korean")) { 27 mb_internal_encoding('EUC-KR'); 28 mb_send_mail($to, "��Ʈ ".mb_language(), "��Ʈ"); 29} 30?> 31--EXPECTF-- 32To: example@example.com 33Subject: %s 34MIME-Version: 1.0 35Content-Type: text/plain; charset=%s 36Content-Transfer-Encoding: %s 37 38%s 39To: example@example.com 40Subject: =?ISO-2022-KR?B?GyQpQw5FVz06Ri4PIEtvcmVhbg8=?= 41MIME-Version: 1.0 42Content-Type: text/plain; charset=ISO-2022-KR 43Content-Transfer-Encoding: 7bit 44 45$)CEW=:F. 46