Skip to content
Snippets Groups Projects
Commit 96c6c99e authored by Primoz Hmeljak's avatar Primoz Hmeljak Committed by Wayne Eaker
Browse files

Issue #3396902 by Primsi: SymfonyMailer::mail should handle other exception types

parent 2957e5df
No related branches found
No related tags found
No related merge requests found
......@@ -374,6 +374,14 @@ class SymfonyMailer implements MailInterface, ContainerFactoryPluginInterface {
the following headers:<br /><br />@headers',
['@exception_message' => $e->getMessage(), '@headers' => $headers]);
}
catch (\Exception $e) {
$this->logger->error('An attempt to send an e-mail message failed, and the following error
message was returned : @exception_message',
[
'@exception_message' => $e->getMessage(),
]
);
}
return FALSE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment