Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
dev_settings: Allow setting the value of EMAIL_USE_TLS from dev-secrets.
Vishnu KS7d8ade3b2ab0
diff --git a/docs/subsystems/email.md b/docs/subsystems/email.mdindex 05fdd15aa9d..8d03ff6efb3 100644--- a/docs/subsystems/email.md+++ b/docs/subsystems/email.md@@ -85,6 +85,7 @@ following keys in `zproject/dev-secrets.conf`* `email_port` - SMTP port.* `email_host_user` - Username of the SMTP user* `email_password` - Password of the SMTP user.+* `email_use_tls` - Set to `true` for most providers. Else, don't set any value.Here is an example of how `zproject/dev-secrets.conf` might look ifyou are using Gmail.@@ -93,6 +94,7 @@ you are using Gmail.email_host = smtp.gmail.comemail_port = 587email_host_user = [email protected]+email_use_tls = true# This is different from your Gmail password if you have 2FA enabled for your Google account.# See the configuring Gmail to send email section above for more detailsdiff --git a/zproject/computed_settings.py b/zproject/computed_settings.pyindex e112d04c0a6..a94ea421b9a 100644--- a/zproject/computed_settings.py+++ b/zproject/computed_settings.py@@ -1111,6 +1111,7 @@ if DEVELOPMENT:EMAIL_HOST = get_secret('email_host', '')EMAIL_PORT = int(get_secret('email_port', '25'))EMAIL_HOST_USER = get_secret('email_host_user', '')+ EMAIL_USE_TLS = get_secret('email_use_tls', '') == 'true'EMAIL_HOST_PASSWORD = get_secret('email_password')EMAIL_GATEWAY_PASSWORD = get_secret('email_gateway_password')