* 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:57:48 +00:00
parent 479f917c09
commit 54847f5768

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);