Change the return adress if the mail fails
This commit is contained in:
parent
b38aadb0d8
commit
b612664ae4
2 changed files with 2 additions and 2 deletions
|
@ -426,7 +426,7 @@ def send_mail(election, subject, body, reply_to):
|
||||||
to=[v.email],
|
to=[v.email],
|
||||||
reply_to=[reply_to],
|
reply_to=[reply_to],
|
||||||
# On modifie l'adresse de retour d'erreur
|
# On modifie l'adresse de retour d'erreur
|
||||||
headers={"Return-Path": "kadenios@www.eleves.ens.fr"},
|
headers={"From": "Kadenios <klub-dev@ens.fr>"},
|
||||||
),
|
),
|
||||||
v,
|
v,
|
||||||
)
|
)
|
||||||
|
|
|
@ -93,7 +93,7 @@ WSGI_APPLICATION = "kadenios.wsgi.application"
|
||||||
|
|
||||||
DEFAULT_AUTO_FIELD = "django.db.models.AutoField"
|
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
|
# Paramètres d'authentification
|
||||||
|
|
Loading…
Reference in a new issue