* Notification/Mail: Fix / work around for BAD Header problem encountered in notifications for insufficiently encoded subject

when sending alarm messages on extended notification format
This commit is contained in:
Klaus Leithoff 2015-02-26 14:56:23 +00:00
parent 6c87b988f5
commit b38eb063f6

View File

@ -101,7 +101,7 @@ class notifications_email implements notifications_iface {
$this->mail->setFrom($this->sender->account_email, $this->sender->account_fullname);
$this->mail->addHeader('Subject', $_subject);
$this->mail->addHeader('Subject', trim($_subject)); // trim the subject to avoid strange wrong encoding problem
$this->mail->setHtmlBody($body_html, null, false); // no automatic alternativ
$this->mail->setBody($body_plain);