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.delivery_method = :smtp
|
||||||
config.action_mailer.smtp_settings = {
|
config.action_mailer.smtp_settings = {
|
||||||
address: 'mail.metamaps.cc',
|
address: ENV['SMTP_SERVER'],
|
||||||
port: 587,
|
port: ENV['SMTP_PORT'],
|
||||||
user_name: 'team@metamaps.cc',
|
user_name: ENV['SMTP_USERNAME'],
|
||||||
password: 'RcxX+s:fht49UX',
|
password: ENV['SMTP_PASSWORD'],
|
||||||
|
#domain: ENV['SMTP_DOMAIN']
|
||||||
authentication: 'plain',
|
authentication: 'plain',
|
||||||
enable_starttls_auto: true,
|
enable_starttls_auto: true,
|
||||||
openssl_verify_mode: 'none' }
|
openssl_verify_mode: 'none' }
|
||||||
|
|
|
@ -27,10 +27,11 @@ Metamaps::Application.configure do
|
||||||
|
|
||||||
config.action_mailer.delivery_method = :smtp
|
config.action_mailer.delivery_method = :smtp
|
||||||
config.action_mailer.smtp_settings = {
|
config.action_mailer.smtp_settings = {
|
||||||
address: 'mail.metamaps.cc',
|
address: ENV['SMTP_SERVER'],
|
||||||
port: 587,
|
port: ENV['SMTP_PORT'],
|
||||||
user_name: 'team@metamaps.cc',
|
user_name: ENV['SMTP_USERNAME'],
|
||||||
password: 'RcxX+s:fht49UX',
|
password: ENV['SMTP_PASSWORD'],
|
||||||
|
#domain: ENV['SMTP_DOMAIN']
|
||||||
authentication: 'plain',
|
authentication: 'plain',
|
||||||
enable_starttls_auto: true,
|
enable_starttls_auto: true,
|
||||||
openssl_verify_mode: 'none' }
|
openssl_verify_mode: 'none' }
|
||||||
|
|
Loading…
Reference in a new issue