瀏覽代碼

Add SMTP_TLS variable for configuring TLS when server uses non-standard port (#4227)

master
Eugen Rochko 6 年之前
committed by GitHub
父節點
當前提交
a3202fd51e
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      config/environments/production.rb

+ 1
- 0
config/environments/production.rb 查看文件

@@ -85,6 +85,7 @@ Rails.application.configure do
:ca_file => ENV['SMTP_CA_FILE'].presence,
:openssl_verify_mode => ENV['SMTP_OPENSSL_VERIFY_MODE'],
:enable_starttls_auto => ENV['SMTP_ENABLE_STARTTLS_AUTO'] || true,
:tls => ENV['SMTP_TLS'].presence,
}

config.action_mailer.delivery_method = ENV.fetch('SMTP_DELIVERY_METHOD', 'smtp').to_sym


Loading…
取消
儲存