Add error handling for missing email settings in
EmailChannel.php
This commit is contained in:
parent
84b74f0b57
commit
45fa88ca4d
1 changed files with 4 additions and 0 deletions
|
|
@ -29,6 +29,10 @@ public function send(SendsEmail $notifiable, Notification $notification): void
|
|||
->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)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue