2 Bug #14779 Proper header-body separator for empty attachment
6 include "Mail/mime.php";
9 $m->addAttachment('', "text/plain", 'file.txt', FALSE, 'base64', 'attachment');
12 if (preg_match('/(Content.*)--=.*/s', $result, $matches)) {
13 print_r($matches[1]."END");
18 Content-Transfer-Encoding: base64
19 Content-Type: text/plain;
21 Content-Disposition: attachment;