From 324f0b664b3b211eb3c1459476b78d95dc382faf Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 27 Oct 2017 19:03:54 +0200 Subject: [PATCH] Embed attached images of Notification html message as inline image --- notifications/inc/class.notifications_email.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/notifications/inc/class.notifications_email.inc.php b/notifications/inc/class.notifications_email.inc.php index 8be7dfe8532..80684582e53 100644 --- a/notifications/inc/class.notifications_email.inc.php +++ b/notifications/inc/class.notifications_email.inc.php @@ -104,6 +104,11 @@ public function send(array $_messages, $_subject = false, $_links = false, $_att $this->mail->setFrom($this->sender->account_email, $this->sender->account_fullname); $this->mail->addHeader('Subject', trim($_subject)); // trim the subject to avoid strange wrong encoding problem + if ($_messages['html']) + { + // embed images as inline + \EGroupware\Api\Mail::processURL2InlineImages($this->mail, $body_html, null); + } $this->mail->setHtmlBody($body_html, null, false); // no automatic alternativ $this->mail->setBody($body_plain);