From 0afab5296c5ce6ceaacdffb2558abf9868627af6 Mon Sep 17 00:00:00 2001 From: Josh Pigford Date: Wed, 9 Oct 2024 08:37:45 -0500 Subject: [PATCH] Email sender --- .env.example | 2 +- app/mailers/application_mailer.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index a44111c0..9bce6ab7 100644 --- a/.env.example +++ b/.env.example @@ -15,7 +15,7 @@ SMTP_USERNAME= SMTP_PASSWORD= SMTP_TLS_ENABLED=true -# Email Configuration +# Address that emails are sent from EMAIL_SENDER= # Database Configuration diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb index 47cdc622..9305dad1 100644 --- a/app/mailers/application_mailer.rb +++ b/app/mailers/application_mailer.rb @@ -1,3 +1,4 @@ class ApplicationMailer < ActionMailer::Base + default from: ENV["EMAIL_SENDER"] if ENV["EMAIL_SENDER"].present? layout "mailer" end