0
0
Fork 0

Adding e-mail configuration

This commit is contained in:
Eugen Rochko 2016-03-16 12:13:40 +01:00
parent 8767a98fbb
commit 2c374cd97c
3 changed files with 25 additions and 1 deletions

View file

@ -12,7 +12,7 @@ Devise.setup do |config|
# 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['SMTP_FROM_ADDRESS'] || 'notifications@localhost'
# Configure the class responsible to send e-mails.
# config.mailer = 'Devise::Mailer'