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
Sending e-mails and settings on Team.
Joao Patricioec867335d51e
diff --git a/app/Http/Livewire/Notifications/EmailSettings.php b/app/Http/Livewire/Notifications/EmailSettings.phpindex caeeca2b89..4fe67c24ed 100644--- a/app/Http/Livewire/Notifications/EmailSettings.php+++ b/app/Http/Livewire/Notifications/EmailSettings.php@@ -12,6 +12,8 @@ class EmailSettings extends Componentprotected $rules = ['model.extra_attributes.smtp_active' => 'nullable|boolean',+ 'model.extra_attributes.from_address' => 'nullable',+ 'model.extra_attributes.from_name' => 'nullable','model.extra_attributes.recipients' => 'nullable','model.extra_attributes.smtp_host' => 'nullable','model.extra_attributes.smtp_port' => 'nullable',@@ -21,6 +23,8 @@ class EmailSettings extends Component'model.extra_attributes.smtp_timeout' => 'nullable',];protected $validationAttributes = [+ 'model.extra_attributes.from_address' => 'From Address',+ 'model.extra_attributes.from_name' => 'From Name','model.extra_attributes.recipients' => 'Recipients','model.extra_attributes.smtp_host' => 'Host','model.extra_attributes.smtp_port' => 'Port',diff --git a/app/Notifications/Channels/CoolifyEmailChannel.php b/app/Notifications/Channels/CoolifyEmailChannel.phpindex a32b58381c..3f122070f3 100644--- a/app/Notifications/Channels/CoolifyEmailChannel.php+++ b/app/Notifications/Channels/CoolifyEmailChannel.php@@ -18,10 +18,13 @@ class CoolifyEmailChannel$mailMessage = $notification->toMail($notifiable);Mail::send([], [], fn(Message $message) => $message- ->from('[email protected]', 'My Coolify Instance')+ ->from(+ $notifiable->extra_attributes?->get('from_address'),+ $notifiable->extra_attributes?->get('from_name')+ )->bcc($bcc)->subject($mailMessage->subject)- ->html((string) $mailMessage->render())+ ->html((string)$mailMessage->render()));}diff --git a/resources/views/livewire/notifications/email-settings.blade.php b/resources/views/livewire/notifications/email-settings.blade.phpindex a87b10abb2..dbcf16c3ba 100644--- a/resources/views/livewire/notifications/email-settings.blade.php+++ b/resources/views/livewire/notifications/email-settings.blade.php@@ -25,6 +25,8 @@<x-inputs.input id="model.extra_attributes.smtp_timeout" label="Timeout" /></div><div class="flex flex-col w-96">+ <x-inputs.input id="model.extra_attributes.from_address" label="From Address" />+ <x-inputs.input id="model.extra_attributes.from_name" label="From Name" /><x-inputs.input id="model.extra_attributes.test_address" label="Send test e-mails to" /></div></div>