From 2c74a7866aa2286a4f8252dff09fbc0d94b564d3 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Tue, 14 Dec 2021 10:17:05 +0100 Subject: [PATCH] =?UTF-8?q?On=20met=20l'adresse=20de=20l'orga=20en=20`Retu?= =?UTF-8?q?rn-Path`=20pour=20ne=20pas=20que=20KDE=20re=C3=A7oive=20tous=20?= =?UTF-8?q?les=20mails=20d'erreur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- elections/utils.py | 2 ++ 1 file changed, 2 insertions(+) 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, )