Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: email channel no recepients

Andras Bacsaie266c7cdec33
diff --git a/app/Notifications/Channels/EmailChannel.php b/app/Notifications/Channels/EmailChannel.php
index 5cd4ceaeb4..cd6dc4b569 100644
--- a/app/Notifications/Channels/EmailChannel.php
+++ b/app/Notifications/Channels/EmailChannel.php
@@ -30,7 +30,12 @@ class EmailChannel
);
} catch (Exception $e) {
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;
}
}