From 5d524b263b86d71563a3e295052af5046b8f9d9a Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 21 Jan 2021 23:43:59 +0100 Subject: [PATCH] Use the server email in the from header --- tfjm/settings_prod.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tfjm/settings_prod.py b/tfjm/settings_prod.py index ac9168b..c7cd466 100644 --- a/tfjm/settings_prod.py +++ b/tfjm/settings_prod.py @@ -20,8 +20,8 @@ EMAIL_PORT = os.getenv("SMTP_PORT") EMAIL_HOST_USER = os.getenv("SMTP_HOST_USER") EMAIL_HOST_PASSWORD = os.getenv("SMTP_HOST_PASSWORD") -DEFAULT_FROM_EMAIL = os.getenv('FROM_EMAIL', 'Contact TFJM² ') SERVER_EMAIL = os.getenv('SERVER_EMAIL', 'contact@tfjm.org') +DEFAULT_FROM_EMAIL = os.getenv('FROM_EMAIL', 'Contact TFJM²') + f" <{SERVER_EMAIL}>" # Security settings SECURE_CONTENT_TYPE_NOSNIFF = False