Skip to content

Commit

Permalink
[Mailer] fixed error that is masked by another error
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Aug 3, 2019
1 parent 8f1d9d2 commit 15dbe4b
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -114,7 +114,11 @@ public function send(RawMessage $message, SmtpEnvelope $envelope = null): ?SentM
try {
$message = parent::send($message, $envelope);
} 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
}

throw $e;
}
Expand Down

0 comments on commit 15dbe4b

Please sign in to comment.