Mailer.php
authorChris <chris@roojs.com>
Thu, 14 Nov 2013 10:45:48 +0000 (18:45 +0800)
committerChris <chris@roojs.com>
Thu, 14 Nov 2013 10:45:48 +0000 (18:45 +0800)
Mailer.php

index 73c3ebe..0bee2fd 100644 (file)
@@ -217,12 +217,12 @@ class Pman_Core_Mailer {
         print_r($parts);exit;
         if($this->attachments){
             //if got a attachments
-            $contentType = 'Content-Type: text/plain; charset=utf-8';
+            
             if (isset($parts[1]['Content-Type'])) {
-                $contentType = $parts[1]['Content-Type'];
+                
                 unset($parts[1]['Content-Type']);
             }
-            
+            $mime->setTXTBody($parts[2]);
             foreach($this->attachments as $attch){
                 $mine->addAttachment(
                         $attch['file'],