From f9c6139bda84009403c0c25ab5daf87cd4ab5444 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 24 Feb 2021 06:15:53 +0100 Subject: [PATCH] do not add html part if body doesn't exists --- inc/inc.ClassEmailNotify.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/inc.ClassEmailNotify.php b/inc/inc.ClassEmailNotify.php index c8b06beb4..5100d2e2e 100644 --- a/inc/inc.ClassEmailNotify.php +++ b/inc/inc.ClassEmailNotify.php @@ -133,6 +133,7 @@ class SeedDMS_EmailNotify extends SeedDMS_Notify { } $bodyhtml = ''; + if(isset($params['__body_html__']) || getMLText($messagekey.'_html')) { if(!isset($params['__skip_header__']) || !$params['__skip_header__']) { if(!isset($params['__header_html__'])) $bodyhtml .= getMLText("email_header_html", $params, "", $lang)."\r\n\r\n"; @@ -149,6 +150,7 @@ class SeedDMS_EmailNotify extends SeedDMS_Notify { elseif($params['__footer_html__']) $bodyhtml .= "\r\n\r\n".getMLText($params['__footer_html__'], $params, "", $lang); } + } $mime = new Mail_mime(array('eol' => "\n"));