mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 09:02:11 +01:00 
			
		
		
		
	Use the server email in the from header
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user