Annotation of embedaddon/php/ext/mbstring/tests/mb_send_mail01.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: mb_send_mail() test 1 (lang=neutral)
3: --SKIPIF--
4: <?php
5: if (!function_exists("mb_send_mail") || !mb_language("neutral")) {
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: /* neutral (UTF-8) */
20: if (mb_language("neutral")) {
21: mb_internal_encoding("none");
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 neutral
35: MIME-Version: 1.0
36: Content-Type: text/plain; charset=UTF-8
37: Content-Transfer-Encoding: BASE64
38:
39: dGVzdA==
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>