From 88e5e528520181e6263b490bb48f2f3f1365dd82 Mon Sep 17 00:00:00 2001 From: Grigory Tumakov <4266448+vokamut@users.noreply.github.com> Date: Wed, 13 May 2020 10:25:57 +0300 Subject: [PATCH] Added error clearing before sending When sending occurs in the queue, the error message is not cleared --- src/Illuminate/Mail/Mailer.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Illuminate/Mail/Mailer.php b/src/Illuminate/Mail/Mailer.php index be0851194541..10a7ae6b6702 100755 --- a/src/Illuminate/Mail/Mailer.php +++ b/src/Illuminate/Mail/Mailer.php @@ -482,6 +482,8 @@ protected function createMessage() */ protected function sendSwiftMessage($message) { + $this->failedRecipients = []; + try { return $this->swift->send($message, $this->failedRecipients); } finally {