Mailer.php
[Pman.Core] / Mailer.php
index 30de1c6..ca3160d 100644 (file)
@@ -460,11 +460,11 @@ class Pman_Core_Mailer {
         @$dom->loadHTML('<?xml encoding="UTF-8">' .$html);
         
         $body = $dom->getElementsByTagName('body');
-        print_R($body);exit;
+        
         $s = $dom->createElement('style');
         $e = $dom->createTextNode($this->css_inline);
         $s->appendChild($e);
-        $body->appendChild($s);
+        $body->item(0)->appendChild($s);
         
         return $dom->saveHTML();
     }