Skip to content

Commit c0de028

Browse files
committed
[Mailer] fixed error that is masked by another error
1 parent 5f78cd9 commit c0de028

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Transport/Smtp/SmtpTransport.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@ public function send(RawMessage $message, SmtpEnvelope $envelope = null): ?SentM
114114
try {
115115
$message = parent::send($message, $envelope);
116116
} catch (TransportExceptionInterface $e) {
117-
$this->executeCommand("RSET\r\n", [250]);
117+
try {
118+
$this->executeCommand("RSET\r\n", [250]);
119+
} catch (TransportExceptionInterface $_) {
120+
// ignore this exception as it probably means that the server error was final
121+
}
118122

119123
throw $e;
120124
}

0 commit comments

Comments
 (0)