From 313139968eb75c3fd5128cdfb52f113e6bb7ba71 Mon Sep 17 00:00:00 2001 From: armab Date: Fri, 2 May 2014 18:34:13 +0300 Subject: [PATCH] Update BaseMailer.php --- framework/mail/BaseMailer.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework/mail/BaseMailer.php b/framework/mail/BaseMailer.php index 55522cfaea..ad805f3f14 100644 --- a/framework/mail/BaseMailer.php +++ b/framework/mail/BaseMailer.php @@ -186,6 +186,9 @@ abstract class BaseMailer extends Component implements MailerInterface, ViewCont if (isset($text)) { $message->setTextBody($text); } elseif (isset($html)) { + if (preg_match('|]*>(.*?)|is', $html, $match)) { + $html = $match[1]; + } $html = preg_replace('|]*>(.*?)|is', '', $html); $message->setTextBody(strip_tags($html)); }