Browse Source

SMTP: Support multiline greeting from server in INIT state. Thanks to Ivanov Juriy for helping identify the problem. Relates to #1845.

adaptive-webui-19844
sledgehammer999 10 years ago
parent
commit
54bf386794
  1. 4
      src/smtp.cpp

4
src/smtp.cpp

@ -174,6 +174,10 @@ void Smtp::readyRead() @@ -174,6 +174,10 @@ void Smtp::readyRead()
switch(state) {
case Init: {
if (code[0] == '2') {
// The server may send a multiline greeting/INIT/220 response.
// We wait until it finishes.
if (line[3] != ' ')
break;
// Connection was successful
ehlo();
} else {

Loading…
Cancel
Save