Skip to content
Snippets Groups Projects
Unverified Commit ba0ec6ba authored by zimmersi's avatar zimmersi Committed by GitHub
Browse files

enable SMTPS: SMTP over direct TLS connection (#2485)

* enable SMTPS: SMTP over direct TLS connection

* remove gem 'sqlite3', '~> 1.3.6' as requested

* enable SMTPS: SMTP over direct TLS connection

* remove gem 'sqlite3', '~> 1.3.6' as requested

* changed image name to kwgl

* rebase and rubocop -a

* removed  gem 'sqlite3', '~> 1.3.6'
parent c7544475
No related branches found
No related tags found
No related merge requests found
...@@ -107,6 +107,9 @@ Rails.application.configure do ...@@ -107,6 +107,9 @@ Rails.application.configure do
} }
end end
# enable SMTPS: SMTP over direct TLS connection
ActionMailer::Base.smtp_settings[:tls] = true if ENV['SMTP_TLS'].present? && ENV['SMTP_TLS'] != "false"
# If configured to 'none' don't check the smtp servers certificate # If configured to 'none' don't check the smtp servers certificate
ActionMailer::Base.smtp_settings[:openssl_verify_mode] = ActionMailer::Base.smtp_settings[:openssl_verify_mode] =
ENV['SMTP_OPENSSL_VERIFY_MODE'] if ENV['SMTP_OPENSSL_VERIFY_MODE'].present? ENV['SMTP_OPENSSL_VERIFY_MODE'] if ENV['SMTP_OPENSSL_VERIFY_MODE'].present?
......
...@@ -135,6 +135,9 @@ GOOGLE_ANALYTICS_TRACKING_ID= ...@@ -135,6 +135,9 @@ GOOGLE_ANALYTICS_TRACKING_ID=
# SMTP_AUTH=plain # SMTP_AUTH=plain
# SMTP_STARTTLS_AUTO=true # SMTP_STARTTLS_AUTO=true
# #
# enable SMTPS: SMTP over direct TLS connection; usually port 465
# SMTP_TLS=true
#
# If your mail server has a self-signed certificate, you'll also need to include the line below. # If your mail server has a self-signed certificate, you'll also need to include the line below.
# Please note that enable this presents its own security risks and should not be done unless necessary. # Please note that enable this presents its own security risks and should not be done unless necessary.
# SMTP_OPENSSL_VERIFY_MODE=none # SMTP_OPENSSL_VERIFY_MODE=none
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment