esmtp error not being thrown properly

This commit is contained in:
Anton Zagorskii 2020-09-06 12:04:32 +01:00 committed by Fabien Potencier
parent f0bf853a86
commit 976eea3be0

View File

@ -166,7 +166,11 @@ class EsmtpTransport extends SmtpTransport
return;
} catch (TransportExceptionInterface $e) {
$this->executeCommand("RSET\r\n", [250]);
try {
$this->executeCommand("RSET\r\n", [250]);
} catch (TransportExceptionInterface $_) {
// ignore this exception as it probably means that the server error was final
}
// keep the error message, but tries the other authenticators
$errors[$authenticator->getAuthKeyword()] = $e;