From 97373535c8fdac31b6148b495a90751e6487960a Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 14 May 2014 11:27:29 +1000 Subject: [PATCH] A regression here worries me too much --- config/environments/production.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 4a2e3eca9..5028919d2 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -36,10 +36,11 @@ Discourse::Application.configure do user_name: GlobalSetting.smtp_user_name, password: GlobalSetting.smtp_password, authentication: GlobalSetting.smtp_authentication, - enable_starttls_auto: GlobalSetting.smtp_enable_start_tls, - openssl_verify_mode: GlobalSetting.smtp_openssl_verify_mode + enable_starttls_auto: GlobalSetting.smtp_enable_start_tls } + settings[:openssl_verify_mode] = GlobalSetting.smtp_openssl_verify_mode if GlobalSetting.smtp_openssl_verify_mode + config.action_mailer.smtp_settings = settings.reject{|x,y| y.nil?} else config.action_mailer.delivery_method = :sendmail