Change the return adress if the mail fails

This commit is contained in:
Tom Hubrecht 2022-12-15 11:28:32 +01:00
parent b38aadb0d8
commit b612664ae4
2 changed files with 2 additions and 2 deletions

View file

@ -426,7 +426,7 @@ def send_mail(election, subject, body, reply_to):
to=[v.email],
reply_to=[reply_to],
# On modifie l'adresse de retour d'erreur
headers={"Return-Path": "kadenios@www.eleves.ens.fr"},
headers={"From": "Kadenios <klub-dev@ens.fr>"},
),
v,
)

View file

@ -93,7 +93,7 @@ WSGI_APPLICATION = "kadenios.wsgi.application"
DEFAULT_AUTO_FIELD = "django.db.models.AutoField"
DEFAULT_FROM_EMAIL = "Kadenios <klub-dev@ens.fr>"
DEFAULT_FROM_EMAIL = "Kadenios <cof-geek-sysadmin@ens.fr>"
# #############################################################################
# Paramètres d'authentification