Skip to content

Commit 7adc9b3

Browse files
committed
always set envelope sender address in ispcmail class
1 parent 38ffacf commit 7adc9b3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/lib/classes/ispcmail.inc.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -824,8 +824,7 @@ public function send($recipients) {
824824
else $rec_string .= $recip;
825825
}
826826
$to = $this->_encodeHeader($rec_string, $this->mail_charset);
827-
//$result = mail($to, $subject, $this->body, implode($this->_crlf, $headers));
828-
$result = mail($to, $enc_subject, $this->body, implode($this->_crlf, $headers));
827+
$result = mail($to, $enc_subject, $this->body, implode($this->_crlf, $headers), "-f $this->_mail_sender");
829828
}
830829

831830
// Reset the subject in case mail is resent

0 commit comments

Comments
 (0)