Skip to content

Commit

Permalink
Merge pull request #739 from albertsun/devise-email-from
Browse files Browse the repository at this point in the history
Have devise send mail from the ENV['EMAIL_FROM_ADDRESS'] address
  • Loading branch information
cantino committed Mar 19, 2015
2 parents 2a99614 + 57b6b0e commit 45eade1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/devise.rb
Expand Up @@ -5,7 +5,7 @@
# Configure the e-mail address which will be shown in Devise::Mailer,
# note that it will be overwritten if you use your own mailer class
# with default "from" parameter.
config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com'
config.mailer_sender = ENV['EMAIL_FROM_ADDRESS'].presence || 'you@example.com'

# Configure the class responsible to send e-mails.
# config.mailer = 'Devise::Mailer'
Expand Down

0 comments on commit 45eade1

Please sign in to comment.