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

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