Mailer.php
[Pman.Core] / Mailer.php
index b2c0925..ca3160d 100644 (file)
@@ -179,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);
             }
@@ -464,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();
     }