Use the server email in the from header
This commit is contained in:
parent
0da0165ce2
commit
5d524b263b
|
@ -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² <contact@tfjm.org>')
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue