Annotation of embedaddon/php/ext/mbstring/tests/mb_send_mail06.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: mb_send_mail() test 6 (lang=Traditional Chinese)
                      3: --SKIPIF--
                      4: <?php
                      5: if (!function_exists("mb_send_mail") || !mb_language("Traditional Chinese")) {
                      6:        die("skip mb_send_mail() not available");
                      7: }
                      8: if (!@mb_internal_encoding('BIG5')) {
                      9:        die("skip BIG5 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: /* Traditional Chinese () */
                     23: if (mb_language("traditional chinese")) {
                     24:        mb_internal_encoding('BIG5');
                     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: =?BIG5?B?tPrF5yBUcmFkaXRpb25hbCBDaGluZXNl?=
                     38: MIME-Version: 1.0
                     39: Content-Type: text/plain; charset=BIG5
                     40: Content-Transfer-Encoding: 8bit
                     41: 
                     42: ´úÅç

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>