2002-11-13 04:04:58 +08:00
|
|
|
|
--TEST--
|
|
|
|
|
mb_send_mail() test 4 (lang=German)
|
|
|
|
|
--SKIPIF--
|
|
|
|
|
<?php
|
2012-04-10 17:47:18 +08:00
|
|
|
|
if (substr(PHP_OS, 0, 3) == 'WIN') {
|
|
|
|
|
die('skip.. Not valid for Windows');
|
2011-09-11 21:04:21 +08:00
|
|
|
|
}
|
2006-06-27 08:09:23 +08:00
|
|
|
|
if (!function_exists("mb_send_mail") || !mb_language("german")) {
|
2002-11-13 04:04:58 +08:00
|
|
|
|
die("skip mb_send_mail() not available");
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
--INI--
|
2003-09-24 10:27:43 +08:00
|
|
|
|
sendmail_path=/bin/cat
|
2010-04-12 22:05:00 +08:00
|
|
|
|
mail.add_x_header=off
|
2002-11-13 04:04:58 +08:00
|
|
|
|
--FILE--
|
|
|
|
|
<?php
|
|
|
|
|
$to = 'example@example.com';
|
|
|
|
|
|
|
|
|
|
/* default setting */
|
|
|
|
|
mb_send_mail($to, mb_language(), "test");
|
|
|
|
|
|
|
|
|
|
/* German (iso-8859-15) */
|
|
|
|
|
if (mb_language("german")) {
|
2002-11-22 02:12:53 +08:00
|
|
|
|
mb_internal_encoding("ISO-8859-15");
|
2002-11-13 04:04:58 +08:00
|
|
|
|
mb_send_mail($to, "Pr"."\xfc"."fung ".mb_language(), "Pr"."\xfc"."fung");
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
--EXPECTF--
|
|
|
|
|
To: example@example.com
|
|
|
|
|
Subject: %s
|
2010-08-25 14:07:22 +08:00
|
|
|
|
MIME-Version: 1.0
|
2002-11-13 04:04:58 +08:00
|
|
|
|
Content-Type: text/plain; charset=%s
|
|
|
|
|
Content-Transfer-Encoding: %s
|
|
|
|
|
|
2003-05-14 08:36:00 +08:00
|
|
|
|
%s
|
2002-11-13 04:04:58 +08:00
|
|
|
|
To: example@example.com
|
|
|
|
|
Subject: =?ISO-8859-15?Q?Pr=FCfung=20German?=
|
2010-08-25 14:07:22 +08:00
|
|
|
|
MIME-Version: 1.0
|
2002-11-13 04:04:58 +08:00
|
|
|
|
Content-Type: text/plain; charset=%s-8859-15
|
|
|
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
|
|
|
|
|
|
Pr<EFBFBD>fung
|