extract email settings into ENV ✂️ fixes #405
This commit is contained in:
parent
8816031b20
commit
c17cc39880
2 changed files with 10 additions and 8 deletions
|
@ -25,10 +25,11 @@ Metamaps::Application.configure do
|
|||
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
config.action_mailer.smtp_settings = {
|
||||
address: 'mail.metamaps.cc',
|
||||
port: 587,
|
||||
user_name: 'team@metamaps.cc',
|
||||
password: 'RcxX+s:fht49UX',
|
||||
address: ENV['SMTP_SERVER'],
|
||||
port: ENV['SMTP_PORT'],
|
||||
user_name: ENV['SMTP_USERNAME'],
|
||||
password: ENV['SMTP_PASSWORD'],
|
||||
#domain: ENV['SMTP_DOMAIN']
|
||||
authentication: 'plain',
|
||||
enable_starttls_auto: true,
|
||||
openssl_verify_mode: 'none' }
|
||||
|
|
|
@ -27,10 +27,11 @@ Metamaps::Application.configure do
|
|||
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
config.action_mailer.smtp_settings = {
|
||||
address: 'mail.metamaps.cc',
|
||||
port: 587,
|
||||
user_name: 'team@metamaps.cc',
|
||||
password: 'RcxX+s:fht49UX',
|
||||
address: ENV['SMTP_SERVER'],
|
||||
port: ENV['SMTP_PORT'],
|
||||
user_name: ENV['SMTP_USERNAME'],
|
||||
password: ENV['SMTP_PASSWORD'],
|
||||
#domain: ENV['SMTP_DOMAIN']
|
||||
authentication: 'plain',
|
||||
enable_starttls_auto: true,
|
||||
openssl_verify_mode: 'none' }
|
||||
|
|
Loading…
Reference in a new issue