Skip to content

Commit f9ab6d2

Browse files
committed
Fetch the devise mailer sender from ENV FROM_ADDRESS
1 parent bf2b263 commit f9ab6d2

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
@@ -26,7 +26,7 @@
2626
# Configure the e-mail address which will be shown in Devise::Mailer,
2727
# note that it will be overwritten if you use your own mailer class
2828
# with default "from" parameter.
29-
config.mailer_sender = '[email protected]'
29+
config.mailer_sender = ENV.fetch('FROM_ADDRESS', 'Better Together Community <[email protected]>')
3030

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

0 commit comments

Comments
 (0)