X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Mailer.php;h=ca3160d9d7df1b255fe14cbfd48ca5ab32af7516;hb=4961a7880705aaf8e097808b0cf5125079c4dacd;hp=30de1c61cf9d4cb69f62c62d53ca8f80cbc26f2e;hpb=0cddb4a18bfe116dc818aaa50a4dbbba249eaedc;p=Pman.Core diff --git a/Mailer.php b/Mailer.php index 30de1c61..ca3160d9 100644 --- a/Mailer.php +++ b/Mailer.php @@ -460,11 +460,11 @@ class Pman_Core_Mailer { @$dom->loadHTML('' .$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(); }