Mailer.php
authorAlan Knowles <alan@roojs.com>
Wed, 22 Aug 2012 04:11:57 +0000 (12:11 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 22 Aug 2012 04:11:57 +0000 (12:11 +0800)
Mailer.php

index a2dcfd0..ea98be0 100644 (file)
@@ -143,28 +143,19 @@ class Pman_Core_Mailer {
             
             foreach($this->images as $cid=>$cdata) { 
             
-                $mime->addAttachment(
+                $mime->addHTMLImage(
                     $cdata['file'],
+                     $cdata['mimetype'],
                     $cdata['mimetype'],
-                     $cid.'.'.$cdata['ext'], //$name        =
-                    true, // $isfile      = 
-                    $encoding    = 'base64',
-                    $disposition = 'inline',
-                    $charset     = '',
-                    $language    = '',
-                    $location    = '',
-                    $n_encoding  = null,
-                    $f_encoding  = null,
-                    $description = '',
-                    $h_charset   = null
+                    $cid.'.'.$cdata['ext'],
+                    true,
+                    $cid
+                );
             }
             $parts[2] = $mime->get();
             $parts[1] = $mime->headers($parts[1]);
         
-
-        
-        
-        
+        }