Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 153f67e

Browse filesBrowse files
author
Anton Zagorskii
committed
esmtp error not being thrown properly
1 parent 4ab612c commit 153f67e
Copy full SHA for 153f67e

File tree

1 file changed

+5
-1
lines changed
Filter options

1 file changed

+5
-1
lines changed

‎src/Symfony/Component/Mailer/Transport/Smtp/EsmtpTransport.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Mailer/Transport/Smtp/EsmtpTransport.php
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,11 @@ private function handleAuth(array $modes): void
166166

167167
return;
168168
} catch (TransportExceptionInterface $e) {
169-
$this->executeCommand("RSET\r\n", [250]);
169+
try {
170+
$this->executeCommand("RSET\r\n", [250]);
171+
} catch (TransportExceptionInterface $_) {
172+
// ignore this exception as it probably means that the server error was final
173+
}
170174

171175
// keep the error message, but tries the other authenticators
172176
$errors[$authenticator->getAuthKeyword()] = $e;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.