From: edward Date: Mon, 26 Mar 2018 05:38:23 +0000 (+0800) Subject: Mailer.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=861629973c732efbce6b304af06421b361b33a69 Mailer.php --- diff --git a/Mailer.php b/Mailer.php index 9dca76de..a1ab4f80 100644 --- a/Mailer.php +++ b/Mailer.php @@ -77,7 +77,7 @@ class Pman_Core_Mailer { var $html_locale = false; // eg. 'en' or 'zh_HK' var $images = array(); // generated list of cid images for sending var $attachments = false; - var $css_inline = false; // not supported + var $css_inline = false; // put the css into the html var $css_embed = false; // put the css tags into the body. var $mail_method = 'SMTP'; @@ -175,10 +175,15 @@ class Pman_Core_Mailer { if ($this->replaceImages) { $htmlbody = $this->htmlbodytoCID($htmlbody); } + if ($this->css_embed) { - $htmlbody = $this->htmlbodyCssEmbed($htmlbody); - + $htmlbody = $this->htmlbodyCssEmbed($htmlbody); + } + + if ($this->css_inline) { + $htmlbody = $this->htmlbodyinlineCss($htmlbody); } + } $tmp_opts['nonHTML'] = true;