Add EMAIL_USE_SSL to settings/conf_templates

This is the settings for implicit SSL/TLS on port 465 (rather than STARTTLS on port 587)
This commit is contained in:
Klaas van Schelven
2025-04-12 21:36:52 +02:00
parent 50343c0b2c
commit 921d5bd4a3
4 changed files with 4 additions and 0 deletions

View File

@@ -101,6 +101,7 @@ if os.getenv("EMAIL_HOST"):
EMAIL_HOST_PASSWORD = os.getenv("EMAIL_HOST_PASSWORD")
EMAIL_PORT = int(os.getenv("EMAIL_PORT", 587))
EMAIL_USE_TLS = os.getenv("EMAIL_USE_TLS", "True").lower() in ("true", "1", "yes")
EMAIL_USE_SSL = os.getenv("EMAIL_USE_SSL", "True").lower() in ("true", "1", "yes")
else:
# print("WARNING: EMAIL_HOST not set; email will not be sent")
EMAIL_BACKEND = "bugsink.email_backends.QuietConsoleEmailBackend"

View File

@@ -47,6 +47,7 @@ EMAIL_BACKEND = "bugsink.email_backends.QuietConsoleEmailBackend"
# EMAIL_HOST_PASSWORD = ...
# EMAIL_PORT = ...
# EMAIL_USE_TLS = ...
# EMAIL_USE_SSL = ...
# SERVER_EMAIL = DEFAULT_FROM_EMAIL = "Bugsink <bugsink@example.org>"
# constants for "create by" (user/team/project) settings

View File

@@ -57,6 +57,7 @@ EMAIL_BACKEND = "bugsink.email_backends.QuietConsoleEmailBackend"
# EMAIL_HOST_PASSWORD = ...
# EMAIL_PORT = ...
# EMAIL_USE_TLS = ...
# EMAIL_USE_SSL = ...
SERVER_EMAIL = DEFAULT_FROM_EMAIL = "Bugsink <bugsink@example.org>"

View File

@@ -133,6 +133,7 @@ def settings_view(request):
"EMAIL_HOST_PASSWORD",
"EMAIL_PORT",
"EMAIL_USE_TLS",
"EMAIL_USE_SSL",
"EMAIL_BACKEND",
"DEFAULT_FROM_EMAIL",
)