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