X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Mailer.php;h=b0a6593a36e8b8f1fd31b38119ffbf7b661bf977;hb=dfa75d1267bc4c1fdb939494f0623df87f038755;hp=ff0ace845e851755bcb1958d10ebeb9dd1d20c01;hpb=e4d2ef5f664f31da58aa50563141e475e462a575;p=Pman.Core 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); }