Add error handling for missing email settings in
EmailChannel.php
This commit is contained in:
@@ -29,6 +29,10 @@ class EmailChannel
|
|||||||
->html((string)$mailMessage->render())
|
->html((string)$mailMessage->render())
|
||||||
);
|
);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
|
$error = $e->getMessage();
|
||||||
|
if ($error === 'No email settings found.') {
|
||||||
|
throw $e;
|
||||||
|
}
|
||||||
ray($e->getMessage());
|
ray($e->getMessage());
|
||||||
$message = "EmailChannel error: {$e->getMessage()}. Failed to send email to:";
|
$message = "EmailChannel error: {$e->getMessage()}. Failed to send email to:";
|
||||||
if (isset($recepients)) {
|
if (isset($recepients)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user