Skip to content

Commit 45eade1

Browse files
committed
Merge pull request huginn#739 from albertsun/devise-email-from
Have devise send mail from the ENV['EMAIL_FROM_ADDRESS'] address
2 parents 2a99614 + 57b6b0e commit 45eade1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/initializers/devise.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Configure the e-mail address which will be shown in Devise::Mailer,
66
# note that it will be overwritten if you use your own mailer class
77
# with default "from" parameter.
8-
config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com'
8+
config.mailer_sender = ENV['EMAIL_FROM_ADDRESS'].presence || 'you@example.com'
99

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

0 commit comments

Comments
 (0)