Mailer.php
authorChris <chris@roojs.com>
Wed, 20 Nov 2013 06:46:54 +0000 (14:46 +0800)
committerChris <chris@roojs.com>
Wed, 20 Nov 2013 06:46:54 +0000 (14:46 +0800)
Mailer.php

index e138836..0b4dc74 100644 (file)
@@ -213,12 +213,12 @@ class Pman_Core_Mailer {
         
         if(!empty($this->attachments)){
             //if got a attachments
+            $header = $mime->headers($parts[1]);
             
             if (isset($parts[1]['Content-Type'])) {
                 unset($parts[1]['Content-Type']);
             }
             
-            $header = $mime->headers($parts[1]);
             if (!$isMime) {
             
                 if(preg_match('/text\/html/', $header['Content-Type'])){