Mailer.php
authoredward <edward@roojs.com>
Mon, 26 Mar 2018 06:16:10 +0000 (14:16 +0800)
committeredward <edward@roojs.com>
Mon, 26 Mar 2018 06:16:10 +0000 (14:16 +0800)
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();
     }