Chore: Ability to configure Mailer sender emails [#339] (#342)

* Chore: Ability to configure Mailer sender emails [#339]

fixes : #339
fixes : #330

* update the documentation
This commit is contained in:
Sojan Jose
2019-12-03 22:54:08 +05:30
committed by Pranav Raj S
parent a8e8416d48
commit 6a2f4e6673
7 changed files with 13 additions and 5 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 = 'accounts@chatwoot.com'
config.mailer_sender = ENV.fetch('MAILER_SENDER_EMAIL', 'accounts@chatwoot.com')
# Configure the class responsible to send e-mails.
# config.mailer = 'Devise::Mailer'