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