diff --git a/public/include/classes/mail.class.php b/public/include/classes/mail.class.php index 329989df3..423b647f7 100644 --- a/public/include/classes/mail.class.php +++ b/public/include/classes/mail.class.php @@ -64,7 +64,7 @@ public function sendMail($template, $aData) { $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; if (strlen(@$aData['senderName']) > 0 && @strlen($aData['senderEmail']) > 0 ) $headers .= 'Reply-To: ' . $aData['senderName'] . ' <' . $aData['senderEmail'] . ">\n"; - if (mail($aData['email'], $this->smarty->fetch(BASEPATH . 'templates/mail/subject.tpl'), $this->smarty->fetch(BASEPATH . 'templates/mail/' . $template . '.tpl'), $headers)) + if (mail($aData['email'], $this->smarty->fetch(BASEPATH . 'templates/mail/subject.tpl'), $this->smarty->fetch(BASEPATH . 'templates/mail/' . $template . '.tpl'), $headers, '-f ' . $this->setting->getValue('website_email'))) return true; $this->setErrorMessage($this->sqlError('E0031')); return false;