Mailer.php
authorChris <chris@roojs.com>
Tue, 12 Nov 2013 09:04:29 +0000 (17:04 +0800)
committerChris <chris@roojs.com>
Tue, 12 Nov 2013 09:04:29 +0000 (17:04 +0800)
Mailer.php

index b23a3f8..3d560cb 100644 (file)
@@ -235,7 +235,7 @@ Content-Type: multipart/alternative; boundary=alt-$random_hash
 foreach($this->attachments as $attch){
 $str .= "
 --mixed-$random_hash
-Content-Type: {$attch['mimetype']}; 
+Content-Type: {$attch['mimetype']}; ".(empty($attch['name'])) ? '' : "name=\"{$attch['name']}\"
 Content-Transfer-Encoding: base64 
 Content-Disposition: attachment