Mailer.php
authorAlan Knowles <alan@roojs.com>
Wed, 15 Aug 2018 02:28:12 +0000 (10:28 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 15 Aug 2018 02:28:12 +0000 (10:28 +0800)
Mailer.php

index ff0ace8..b0a6593 100644 (file)
@@ -505,6 +505,10 @@ class Pman_Core_Mailer {
         $body = $dom->getElementsByTagName('body');
         if ($body->count()) {
             $body->item(0)->setAttribute('class', $cls);
+        } else {
+            $body = $dom->createElement("body");
+            $body->setAttribute('class', $cls);
+            $dom->appendChild($body);
         }