Make SMTP authentication mechanism configurable.

This commit is contained in:
Vikhyat Korrapati 2014-01-06 18:19:42 +05:30
parent eeb83adf71
commit 6d50504a83
2 changed files with 4 additions and 1 deletions

View File

@ -56,6 +56,9 @@ smtp_user_name =
# password for smtp server
smtp_password =
# smtp authentication mechanism
smtp_authentication = plain
# enable TLS encryption for smtp connections
smtp_enable_start_tls = true

View File

@ -39,7 +39,7 @@ Discourse::Application.configure do
domain: GlobalSetting.smtp_domain,
user_name: GlobalSetting.smtp_user_name,
password: GlobalSetting.smtp_password,
authentication: 'plain',
authentication: GlobalSetting.smtp_authentication,
enable_starttls_auto: GlobalSetting.smtp_enable_start_tls
}