File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments