From 92f2c5961287b115e82a2b6377fe9184ae93e3b3 Mon Sep 17 00:00:00 2001 From: Ihor Sviziev Date: Mon, 5 Jul 2021 13:06:45 +0300 Subject: [PATCH] Add previous exception with more details --- app/code/Magento/Email/Model/Transport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Email/Model/Transport.php b/app/code/Magento/Email/Model/Transport.php index 54f884c99d5d3..db2fd2978c7a6 100644 --- a/app/code/Magento/Email/Model/Transport.php +++ b/app/code/Magento/Email/Model/Transport.php @@ -111,7 +111,7 @@ public function sendMessage() $this->laminasTransport->send($laminasMessage); } catch (\Exception $e) { $this->logger->error($e); - throw new MailException(new Phrase('Unable to send mail. Please try again later.')); + throw new MailException(new Phrase('Unable to send mail. Please try again later.'), $e); } }