Added new smtp attribute for STARTTLS

This commit is contained in:
Priit Tark 2015-05-14 14:35:44 +03:00
parent 2ec7e09ba5
commit beb921d94a
2 changed files with 4 additions and 2 deletions

View file

@ -44,6 +44,8 @@ smtp_password: 'pw/key'
smtp_domain: 'domain for HELO checking'
# Use "none" only when for a self-signed and/or wildcard certificate
smtp_openssl_verify_mode: 'peer' # 'none', 'peer', 'client_once','fail_if_no_peer_cert'
# Detects if STARTTLS is enabled in your SMTP server and starts to use it. Defaults to true.
smtp_enable_starttls_auto: 'true' # 'false'
# autotest config overwrites
test:

View file

@ -61,12 +61,12 @@ module Registry
config.action_mailer.smtp_settings = {
address: ENV['smtp_address'],
port: ENV['smtp_port'],
enable_starttls_auto: true,
enable_starttls_auto: ENV['smtp_enable_starttls_auto'],
user_name: ENV['smtp_user_name'],
password: ENV['smtp_password'],
authentication: 'smtp_login',
domain: ENV['smtp_domain'],
openssl_verify_mode: ENV['smtp_openssl_verify_mode']
openssl_verify_mode: ENV['smtp_openssl_verify_mode'],
}
end
end