From 861629973c732efbce6b304af06421b361b33a69 Mon Sep 17 00:00:00 2001 From: edward Date: Mon, 26 Mar 2018 13:38:23 +0800 Subject: [PATCH] Mailer.php --- Mailer.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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; -- 2.39.2