Skip to content

Commit 5c65843

Browse files
author
Marius Cramer
committed
Fixed: FS#3431 - Systemmails via google's SMTP not working
1 parent 7dc4388 commit 5c65843

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

interface/lib/classes/ispcmail.inc.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -593,18 +593,18 @@ private function _smtp_login() {
593593
$response = fgets($this->_smtp_conn, 515);
594594
if(empty($this->_smtp_conn)) return false;
595595

596+
//Say Hello to SMTP
597+
if($this->smtp_helo == '') $this->detectHelo();
598+
fputs($this->_smtp_conn, 'HELO ' . $this->smtp_helo . $this->_crlf);
599+
$response = fgets($this->_smtp_conn, 515);
600+
596601
// ENCRYPTED?
597602
if($this->smtp_crypt == 'tls') {
598603
fputs($this->_smtp_conn, 'STARTTLS' . $this->_crlf);
599604
fgets($this->_smtp_conn, 515);
600605
stream_socket_enable_crypto($this->_smtp_conn, true, STREAM_CRYPTO_METHOD_TLS_CLIENT);
601606
}
602607

603-
//Say Hello to SMTP
604-
if($this->smtp_helo == '') $this->detectHelo();
605-
fputs($this->_smtp_conn, 'HELO ' . $this->smtp_helo . $this->_crlf);
606-
$response = fgets($this->_smtp_conn, 515);
607-
608608
//AUTH LOGIN
609609
fputs($this->_smtp_conn, 'AUTH LOGIN' . $this->_crlf);
610610
$response = fgets($this->_smtp_conn, 515);

0 commit comments

Comments
 (0)