Add error handling for missing email settings in

EmailChannel.php
This commit is contained in:
Andras Bacsai 2023-11-14 11:04:45 +01:00
parent 84b74f0b57
commit 45fa88ca4d

View File

@ -29,6 +29,10 @@ class EmailChannel
->html((string)$mailMessage->render())
);
} catch (Exception $e) {
$error = $e->getMessage();
if ($error === 'No email settings found.') {
throw $e;
}
ray($e->getMessage());
$message = "EmailChannel error: {$e->getMessage()}. Failed to send email to:";
if (isset($recepients)) {