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
refactor(email): streamline SMTP and resend settings logic for improved clarity
Andras Bacsaibcddba3569cc
diff --git a/app/Livewire/Notifications/Email.php b/app/Livewire/Notifications/Email.phpindex 897e6cf06c..128321ed26 100644--- a/app/Livewire/Notifications/Email.php+++ b/app/Livewire/Notifications/Email.php@@ -254,10 +254,9 @@ class Email extends Component'smtpEncryption.required' => 'Encryption type is required.',]);- $this->settings->resend_enabled = false;- $this->settings->use_instance_email_settings = false;- $this->resendEnabled = false;- $this->useInstanceEmailSettings = false;+ if ($this->smtpEnabled) {+ $this->settings->resend_enabled = $this->resendEnabled = false;+ }$this->settings->smtp_enabled = $this->smtpEnabled;$this->settings->smtp_from_address = $this->smtpFromAddress;@@ -293,11 +292,9 @@ class Email extends Component'smtpFromAddress.email' => 'Please enter a valid email address.','smtpFromName.required' => 'From Name is required.',]);-- $this->settings->smtp_enabled = false;- $this->settings->use_instance_email_settings = false;- $this->smtpEnabled = false;- $this->useInstanceEmailSettings = false;+ if ($this->resendEnabled) {+ $this->settings->smtp_enabled = $this->smtpEnabled = false;+ }$this->settings->resend_enabled = $this->resendEnabled;$this->settings->resend_api_key = $this->resendApiKey;