From 7d7ff8cdc7c4d8abb0f2d000175b5ccf2ca6a25b Mon Sep 17 00:00:00 2001 From: nielosz Date: Fri, 15 Apr 2016 12:07:08 +0200 Subject: [PATCH] To check mails for a valid html part strip tags when comparing --- CRM/Mailing/BAO/Mailing.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Mailing/BAO/Mailing.php b/CRM/Mailing/BAO/Mailing.php index a863b10ff1..c324e044ee 100644 --- a/CRM/Mailing/BAO/Mailing.php +++ b/CRM/Mailing/BAO/Mailing.php @@ -784,7 +784,8 @@ ORDER BY i.contact_id, i.{$tempColumn} $this->templates['text'] = implode("\n", $template); } - if ($this->body_html) { + // To check for an html part strip tags + if (trim(strip_tags($this->body_html))) { $template = array(); if ($this->header) { -- 2.25.1