mirror of
https://github.com/php/php-src.git
synced 2024-12-11 10:54:47 +08:00
39 lines
802 B
PHP
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
|