Annotation of embedaddon/php/ext/mbstring/tests/mb_send_mail07.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: mb_send_mail() test 7 (lang=Korean)
! 3: --SKIPIF--
! 4: <?php
! 5: if (!function_exists("mb_send_mail") || !mb_language("Korean")) {
! 6: die("skip mb_send_mail() not available");
! 7: }
! 8: if (!@mb_internal_encoding('ISO-2022-KR')) {
! 9: die("skip ISO-2022-KR encoding is not available on this platform");
! 10: }
! 11: ?>
! 12: --INI--
! 13: sendmail_path=/bin/cat
! 14: mail.add_x_header=off
! 15: --FILE--
! 16: <?php
! 17: $to = 'example@example.com';
! 18:
! 19: /* default setting */
! 20: mb_send_mail($to, mb_language(), "test");
! 21:
! 22: /* Korean */
! 23: if (mb_language("korean")) {
! 24: mb_internal_encoding('EUC-KR');
! 25: mb_send_mail($to, "Å×½ºÆ® ".mb_language(), "Å×½ºÆ®");
! 26: }
! 27: ?>
! 28: --EXPECTF--
! 29: To: example@example.com
! 30: Subject: %s
! 31: MIME-Version: 1.0
! 32: Content-Type: text/plain; charset=%s
! 33: Content-Transfer-Encoding: %s
! 34:
! 35: %s
! 36: To: example@example.com
! 37: Subject: =?ISO-2022-KR?B?GyQpQw5FVz06Ri4PIEtvcmVhbg8=?=
! 38: MIME-Version: 1.0
! 39: Content-Type: text/plain; charset=ISO-2022-KR
! 40: Content-Transfer-Encoding: 7bit
! 41:
! 42: $)CEW=:F.
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>