From 76cf9e4b9b9c32c28732098f5d1a696a7e55516e Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Thu, 28 Mar 2013 16:41:16 +0000 Subject: [PATCH] Use default email sender address from environment var --- app/mailers/user_mailer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb index 42cc6b4..775a53a 100644 --- a/app/mailers/user_mailer.rb +++ b/app/mailers/user_mailer.rb @@ -1,5 +1,5 @@ class UserMailer < ActionMailer::Base - default from: "from@example.com" + default from: ENV['APOLLO_EMAIL_FROM'] || "from@example.com" # Subject can be set in your I18n file at config/locales/en.yml # with the following lookup: