Skip to content

Commit c2b400b

Browse files
author
Marius Burkard
committed
Merge branch '5865-password-lost-emails-not-sent' into 'develop'
Resolve "Password lost emails not sent" Closes #5865 See merge request ispconfig/ispconfig3!1434
2 parents da41358 + fc69aba commit c2b400b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

interface/lib/classes/ispcmail.inc.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,9 @@ private function _smtp_login() {
612612
if (stream_socket_enable_crypto($this->_smtp_conn, true, $crypto_method) != true) {
613613
return false;
614614
}
615+
616+
fputs($this->_smtp_conn, 'HELO ' . $this->smtp_helo . $this->_crlf);
617+
$response = fgets($this->_smtp_conn, 515);
615618
}
616619

617620
//AUTH LOGIN
@@ -824,8 +827,7 @@ public function send($recipients) {
824827
else $rec_string .= $recip;
825828
}
826829
$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));
830+
$result = mail($to, $enc_subject, $this->body, implode($this->_crlf, $headers), "-f $this->_mail_sender");
829831
}
830832

831833
// Reset the subject in case mail is resent

server/lib/classes/ispcmail.inc.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,9 @@ private function _smtp_login() {
612612
if (stream_socket_enable_crypto($this->_smtp_conn, true, $crypto_method) != true) {
613613
return false;
614614
}
615+
616+
fputs($this->_smtp_conn, 'HELO ' . $this->smtp_helo . $this->_crlf);
617+
$response = fgets($this->_smtp_conn, 515);
615618
}
616619

617620
//AUTH LOGIN

0 commit comments

Comments
 (0)