Skip to content

Commit 6788411

Browse files
committed
Merge pull request #2008 from MPOS/mail-return-path
[ADDED] Return-Path when sending mail
2 parents 46f7adb + 662ff69 commit 6788411

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/include/classes/mail.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function sendMail($template, $aData) {
6464
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
6565
if (strlen(@$aData['senderName']) > 0 && @strlen($aData['senderEmail']) > 0 )
6666
$headers .= 'Reply-To: ' . $aData['senderName'] . ' <' . $aData['senderEmail'] . ">\n";
67-
if (mail($aData['email'], $this->smarty->fetch(BASEPATH . 'templates/mail/subject.tpl'), $this->smarty->fetch(BASEPATH . 'templates/mail/' . $template . '.tpl'), $headers))
67+
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')))
6868
return true;
6969
$this->setErrorMessage($this->sqlError('E0031'));
7070
return false;

0 commit comments

Comments
 (0)