From 3f8514050e358c7909ba54f146bede6f30c06fd4 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 6 Nov 2023 10:26:56 +0100 Subject: [PATCH] fix: set default from/sender names --- app/Notifications/Channels/EmailChannel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Notifications/Channels/EmailChannel.php b/app/Notifications/Channels/EmailChannel.php index 7a0ee2c0c..82fc9a65c 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', 'test@example.com')); + 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'));