Mailer.php
authoredward <edward@roojs.com>
Mon, 26 Mar 2018 06:01:50 +0000 (14:01 +0800)
committeredward <edward@roojs.com>
Mon, 26 Mar 2018 06:01:50 +0000 (14:01 +0800)
Mailer.php

index fb2364d..00950c3 100644 (file)
@@ -459,12 +459,12 @@ class Pman_Core_Mailer {
         
         @$dom->loadHTML('<?xml encoding="UTF-8">' .$html);
         
-        $head = $dom->getElementsByTagName('body');
+        $body = $dom->getElementsByTagName('body');
         
         $s = $dom->createElement('style');
         $e = $dom->createTextNode($this->css_inline);
         $s->appendChild($e);
-        $head->appendChild($s);
+        $body->appendChild($s);
         
         return $dom->saveHTML();
     }