Merge pull request #1791 from vikhyat/smtp-auth-option
Make SMTP authentication mechanism configurable.
This commit is contained in:
commit
d3c223e464
|
@ -56,6 +56,9 @@ smtp_user_name =
|
||||||
# password for smtp server
|
# password for smtp server
|
||||||
smtp_password =
|
smtp_password =
|
||||||
|
|
||||||
|
# smtp authentication mechanism
|
||||||
|
smtp_authentication = plain
|
||||||
|
|
||||||
# enable TLS encryption for smtp connections
|
# enable TLS encryption for smtp connections
|
||||||
smtp_enable_start_tls = true
|
smtp_enable_start_tls = true
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ Discourse::Application.configure do
|
||||||
domain: GlobalSetting.smtp_domain,
|
domain: GlobalSetting.smtp_domain,
|
||||||
user_name: GlobalSetting.smtp_user_name,
|
user_name: GlobalSetting.smtp_user_name,
|
||||||
password: GlobalSetting.smtp_password,
|
password: GlobalSetting.smtp_password,
|
||||||
authentication: 'plain',
|
authentication: GlobalSetting.smtp_authentication,
|
||||||
enable_starttls_auto: GlobalSetting.smtp_enable_start_tls
|
enable_starttls_auto: GlobalSetting.smtp_enable_start_tls
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue