diff --git a/elections/utils.py b/elections/utils.py index 27dfc97..fd2c572 100644 --- a/elections/utils.py +++ b/elections/utils.py @@ -421,6 +421,8 @@ 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": reply_to}, ), v, )