Mailer.php
[Pman.Core] / Mailer.php
index 7e4e80e..ca3160d 100644 (file)
@@ -87,7 +87,6 @@ class Pman_Core_Mailer {
     var $bcc = false;
     
     function __construct($args) {
-        print_R($args);exit;
         foreach($args as $k=>$v) {
             // a bit trusting..
             $this->$k =  $v;
@@ -180,7 +179,7 @@ class Pman_Core_Mailer {
             if ($this->css_embed) {
                 $htmlbody = $this->htmlbodyCssEmbed($htmlbody);
             }
-            print_R($this);exit;
+            
             if ($this->css_inline && strlen($this->css_inline)) {
                 $htmlbody = $this->htmlbodyInlineCss($htmlbody);
             }
@@ -465,7 +464,7 @@ class Pman_Core_Mailer {
         $s = $dom->createElement('style');
         $e = $dom->createTextNode($this->css_inline);
         $s->appendChild($e);
-        $body->appendChild($s);
+        $body->item(0)->appendChild($s);
         
         return $dom->saveHTML();
     }