Skip to content

Commit

Permalink
Embed attached images of Notification html message as inline image
Browse files Browse the repository at this point in the history
  • Loading branch information
hnategh committed Oct 27, 2017
1 parent 616c11c commit 324f0b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions notifications/inc/class.notifications_email.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 324f0b6

Please sign in to comment.