diff --git a/src/smtp.cpp b/src/smtp.cpp index 2fab005..ffae1c6 100644 --- a/src/smtp.cpp +++ b/src/smtp.cpp @@ -173,6 +173,11 @@ void smtp::connect() { string line = _dlg->receive(); tuple tokens = parse_line(line); + while (!std::get<1>(tokens)) + { + line = _dlg->receive(); + tokens = parse_line(line); + } if (std::get<0>(tokens) != SERVICE_READY_STATUS) throw smtp_error("Connection rejection."); }