[Mailer] fixed SMTP support when a message cannot be sent
This commit is contained in:
parent
f3f1ebc520
commit
3d25c1c613
@ -111,7 +111,13 @@ class SmtpTransport extends AbstractTransport
|
||||
$this->start();
|
||||
}
|
||||
|
||||
try {
|
||||
$message = parent::send($message, $envelope);
|
||||
} catch (TransportExceptionInterface $e) {
|
||||
$this->executeCommand("RSET\r\n", [250]);
|
||||
|
||||
throw $e;
|
||||
}
|
||||
|
||||
$this->checkRestartThreshold();
|
||||
|
||||
|
Reference in New Issue
Block a user