Merge pull request #406 from s01us/extract_mail_env
extract email settings into ENV ✂️
This commit is contained in:
commit
9ce81df9f9
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