mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
A regression here worries me too much
This commit is contained in:
parent
810eda448f
commit
97373535c8
@ -36,10 +36,11 @@ Discourse::Application.configure do
|
|||||||
user_name: GlobalSetting.smtp_user_name,
|
user_name: GlobalSetting.smtp_user_name,
|
||||||
password: GlobalSetting.smtp_password,
|
password: GlobalSetting.smtp_password,
|
||||||
authentication: GlobalSetting.smtp_authentication,
|
authentication: GlobalSetting.smtp_authentication,
|
||||||
enable_starttls_auto: GlobalSetting.smtp_enable_start_tls,
|
enable_starttls_auto: GlobalSetting.smtp_enable_start_tls
|
||||||
openssl_verify_mode: GlobalSetting.smtp_openssl_verify_mode
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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?}
|
config.action_mailer.smtp_settings = settings.reject{|x,y| y.nil?}
|
||||||
else
|
else
|
||||||
config.action_mailer.delivery_method = :sendmail
|
config.action_mailer.delivery_method = :sendmail
|
||||||
|
Loading…
Reference in New Issue
Block a user