Andro
(Andrew Bernard)
January 28, 2025, 7:09am
1
What is the full set of these variables?
I have this set:
DISCOURSE_SMTP_ADDRESS:
DISCOURSE_SMTP_PORT:
DISCOURSE_SMTP_USER_NAME:
DISCOURSE_SMTP_PASSWORD:
DISCOURSE_SMTP_ENABLE_START_TLS: true # (optional, default true)
DISCOURSE_SMTP_DOMAIN:
DISCOURSE_NOTIFICATION_EMAIL:
In my admin panel, I see authentication is ‘plain’ but I believe I need ‘login’. Where does one set this? Where is the documentation of these settings?
pangbo
January 28, 2025, 9:31am
2
You may check these links:
def self.smtp_settings
if GlobalSetting.smtp_address
settings = {
address: GlobalSetting.smtp_address,
port: GlobalSetting.smtp_port,
domain: GlobalSetting.smtp_domain,
user_name: GlobalSetting.smtp_user_name,
password: GlobalSetting.smtp_password,
enable_starttls_auto: GlobalSetting.smtp_enable_start_tls,
open_timeout: GlobalSetting.smtp_open_timeout,
read_timeout: GlobalSetting.smtp_read_timeout,
}
if settings[:password] || settings[:user_name]
settings[:authentication] = GlobalSetting.smtp_authentication
end
settings[
:openssl_verify_mode
] = GlobalSetting.smtp_openssl_verify_mode if GlobalSetting.smtp_openssl_verify_mode
This file has been truncated. show original
3 Likes