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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: form address
Andras Bacsaieac783408384
diff --git a/app/Notifications/Channels/EmailChannel.php b/app/Notifications/Channels/EmailChannel.phpindex 0c042fcfcd..e0f9edac04 100644--- a/app/Notifications/Channels/EmailChannel.php+++ b/app/Notifications/Channels/EmailChannel.php@@ -9,7 +9,6 @@ use Illuminate\Support\Facades\Mail;class EmailChannel{- private bool $isResend = false;public function send(SendsEmail $notifiable, Notification $notification): void{$this->bootConfigs($notifiable);@@ -20,33 +19,14 @@ class EmailChannel}$mailMessage = $notification->toMail($notifiable);- // if ($this->isResend) {Mail::send([],[],fn (Message $message) => $message- ->from(- data_get($notifiable, 'smtp_from_address'),- data_get($notifiable, 'smtp_from_name'),- )->to($recepients)->subject($mailMessage->subject)->html((string)$mailMessage->render()));- // } else {- // Mail::send(- // [],- // [],- // fn (Message $message) => $message- // ->from(- // data_get($notifiable, 'smtp_from_address'),- // data_get($notifiable, 'smtp_from_name'),- // )- // ->bcc($recepients)- // ->subject($mailMessage->subject)- // ->html((string)$mailMessage->render())- // );- // }}private function bootConfigs($notifiable): void@@ -56,13 +36,11 @@ class EmailChannelif (!$type) {throw new Exception('No email settings found.');}- if ($type === 'resend') {- $this->isResend = true;- }return;}+ config()->set('mail.from.address', data_get($notifiable, 'smtp_from_address'));+ config()->set('mail.from.name', data_get($notifiable, 'smtp_from_name'));if (data_get($notifiable, 'resend_enabled')) {- $this->isResend = true;config()->set('mail.default', 'resend');config()->set('resend.api_key', data_get($notifiable, 'resend_api_key'));}diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.phpindex 249f76920b..7056b159b4 100644--- a/bootstrap/helpers/shared.php+++ b/bootstrap/helpers/shared.php@@ -149,6 +149,8 @@ function set_transanctional_email_settings(InstanceSettings | null $settings = nif (!$settings) {$settings = InstanceSettings::get();}+ config()->set('mail.from.address', data_get($settings, 'smtp_from_address'));+ config()->set('mail.from.name', data_get($settings, 'smtp_from_name'));if (data_get($settings, 'resend_enabled')) {config()->set('mail.default', 'resend');config()->set('resend.api_key', data_get($settings, 'resend_api_key'));