Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
Bug #15320  Charset parameter in Content-Type of mail parts
3
--SKIPIF--
4
--FILE--
5
<?php
6
error_reporting(E_ALL); // ignore E_STRICT
7
include "Mail/mime.php";
8
$m = new Mail_mime();
9
$m->addAttachment('testfile', "text/plain", 'file.txt', FALSE, 'base64', 'attachment', 'ISO-8859-1');
10
$root = $m->_addMixedPart();
11
$enc = $m->_addAttachmentPart($root, $m->_parts[0]);
12
print_r($enc->_headers['Content-Type']);
13
?>
14
--EXPECT--
15
text/plain; charset=ISO-8859-1;
16
 name=file.txt
17