From: Alan Knowles Date: Wed, 15 Aug 2018 02:28:12 +0000 (+0800) Subject: Mailer.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=dfa75d1267bc4c1fdb939494f0623df87f038755 Mailer.php --- diff --git a/Mailer.php b/Mailer.php index ff0ace84..b0a6593a 100644 --- a/Mailer.php +++ b/Mailer.php @@ -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); }