php-src/ext/mbstring/tests/mb_send_mail04.phpt
2006-06-27 00:09:43 +00:00

39 lines
802 B
PHP

--TEST--
mb_send_mail() test 4 (lang=German)
--SKIPIF--
<?php
if (!function_exists("mb_send_mail") || !mb_language("german")) {
die("skip mb_send_mail() not available");
}
?>
--INI--
sendmail_path=/bin/cat
--FILE--
<?php
$to = 'example@example.com';
/* default setting */
mb_send_mail($to, mb_language(), "test");
/* German (iso-8859-15) */
if (mb_language("german")) {
mb_internal_encoding("ISO-8859-15");
mb_send_mail($to, "Pr"."\xfc"."fung ".mb_language(), "Pr"."\xfc"."fung");
}
?>
--EXPECTF--
To: example@example.com
Subject: %s
Mime-Version: 1.0
Content-Type: text/plain; charset=%s
Content-Transfer-Encoding: %s
%s
To: example@example.com
Subject: =?ISO-8859-15?Q?Pr=FCfung=20German?=
Mime-Version: 1.0
Content-Type: text/plain; charset=%s-8859-15
Content-Transfer-Encoding: 8bit
Prüfung