From 03adde8928bab9b21873c0928a6e1e4b0d229578 Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Sun, 15 Feb 2026 22:40:35 +0100 Subject: [PATCH] fixed tls/ssl email --- backend/holy_backend/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/holy_backend/settings.py b/backend/holy_backend/settings.py index df772de..76e2342 100644 --- a/backend/holy_backend/settings.py +++ b/backend/holy_backend/settings.py @@ -167,7 +167,8 @@ import os # For development, it will default to printing emails to the console. EMAIL_HOST = os.environ.get('EMAIL_HOST') EMAIL_PORT = int(os.environ.get('EMAIL_PORT', 587)) -EMAIL_USE_TLS = os.environ.get('EMAIL_USE_TLS', 'true').lower() == 'true' +# Default to False unless explicitly set to 'true' in the .env file +EMAIL_USE_TLS = os.environ.get('EMAIL_USE_TLS', 'false').lower() == 'true' EMAIL_USE_SSL = os.environ.get('EMAIL_USE_SSL', 'false').lower() == 'true' EMAIL_HOST_USER = os.environ.get('EMAIL_HOST_USER') EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_HOST_PASSWORD')