mirror of
https://github.com/jlengrand/bugsink.git
synced 2026-03-10 08:01:17 +00:00
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:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>"
|
||||
|
||||
|
||||
@@ -133,6 +133,7 @@ def settings_view(request):
|
||||
"EMAIL_HOST_PASSWORD",
|
||||
"EMAIL_PORT",
|
||||
"EMAIL_USE_TLS",
|
||||
"EMAIL_USE_SSL",
|
||||
"EMAIL_BACKEND",
|
||||
"DEFAULT_FROM_EMAIL",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user