To check mails for a valid html part strip tags when comparing
authornielosz <nielosz@users.noreply.github.com>
Fri, 15 Apr 2016 10:07:08 +0000 (12:07 +0200)
committernielosz <nielosz@users.noreply.github.com>
Fri, 15 Apr 2016 10:07:08 +0000 (12:07 +0200)
CRM/Mailing/BAO/Mailing.php

index a863b10ff14f20210559b60e42710f48b54a38ee..c324e044ee99cd5aaf01b499483797130ce561d7 100644 (file)
@@ -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) {