Annotation of embedaddon/php/ext/mbstring/tests/mb_send_mail03.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: mb_send_mail() test 3 (lang=English)
! 3: --SKIPIF--
! 4: <?php
! 5: if (!function_exists("mb_send_mail") || !mb_language("english")) {
! 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: /* English (iso-8859-1) */
! 20: if (mb_language("english")) {
! 21: mb_internal_encoding("ISO-8859-1");
! 22: mb_send_mail($to, "test ".mb_language(), "test");
! 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: test English
! 35: MIME-Version: 1.0
! 36: Content-Type: text/plain; charset=%s-8859-1
! 37: Content-Transfer-Encoding: 8bit
! 38:
! 39: test
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>