2
Bug #14779 Proper header-body separator for empty attachment
6
error_reporting(E_ALL); // ignore E_STRICT
7
include "Mail/mime.php";
10
$m->addAttachment('', "text/plain", 'file.txt', FALSE, 'base64', 'attachment');
13
if (preg_match('/(Content.*)--=.*/s', $result, $matches)) {
14
print_r($matches[1]."END");
19
Content-Transfer-Encoding: base64
20
Content-Type: text/plain;
22
Content-Disposition: attachment;
b'\\ No newline at end of file'