fix: email channel no recepients
This commit is contained in:
parent
eedc3faba3
commit
e266c7cdec
1 changed files with 6 additions and 1 deletions
|
|
@ -30,7 +30,12 @@ public function send(SendsEmail $notifiable, Notification $notification): void
|
||||||
);
|
);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
ray($e->getMessage());
|
ray($e->getMessage());
|
||||||
send_internal_notification("EmailChannel error: {$e->getMessage()}. Failed to send email to: " . implode(', ', $recepients) . " with subject: {$mailMessage->subject}");
|
$message = "EmailChannel error: {$e->getMessage()}. Failed to send email to:";
|
||||||
|
if (isset($recepients)) {
|
||||||
|
$message .= implode(', ', $recepients);
|
||||||
|
}
|
||||||
|
$message .= " with subject: {$mailMessage->subject}";
|
||||||
|
send_internal_notification($message);
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue