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: set default from/sender names

Andras Bacsai3f8514050e35
diff --git a/app/Notifications/Channels/EmailChannel.php b/app/Notifications/Channels/EmailChannel.php
index 7a0ee2c0c4..82fc9a65ce 100644
--- a/app/Notifications/Channels/EmailChannel.php
+++ b/app/Notifications/Channels/EmailChannel.php
@@ -51,8 +51,8 @@ class EmailChannel
}
return;
}
- config()->set('mail.from.address', data_get($notifiable, 'smtp_from_address'));
- config()->set('mail.from.name', data_get($notifiable, 'smtp_from_name'));
+ config()->set('mail.from.address', data_get($notifiable, 'smtp_from_address', '[email protected]'));
+ config()->set('mail.from.name', data_get($notifiable, 'smtp_from_name', 'Test'));
if (data_get($notifiable, 'resend_enabled')) {
config()->set('mail.default', 'resend');
config()->set('resend.api_key', data_get($notifiable, 'resend_api_key'));