From 884be4efd74cd7e2ed9e2708186ec27655acb6ee Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Thu, 15 Sep 2022 00:32:39 +0200 Subject: [PATCH] =?UTF-8?q?WIP:=20contr=C3=B4le=20cotisation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controle_cotisation/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/controle_cotisation/main.py b/controle_cotisation/main.py index cccd6e2..0983fe7 100755 --- a/controle_cotisation/main.py +++ b/controle_cotisation/main.py @@ -229,7 +229,8 @@ def notify_unpaid(member): mailtext = mailtext.replace("NOM_COTISANT", name) mailtext = mailtext.replace("NUMERO_MEMBRE", str(numero)) mailtext = mailtext.replace("MONTANT_COTISATION", amount) - mailheaders = get_file_content_all(MODALITY_MAIL_HEADERS).replace("ANNEE_CIVILE", year) + mailheaders = get_file_content_all(MODALITY_MAIL_HEADERS) + "\n" + mailheaders = mailheaders.replace("ANNEE_CIVILE", year) mailheaders = mailheaders.replace("COURRIEL-COTISANT", email) sendmail(mailheaders, mailtext) @@ -251,7 +252,8 @@ def renotify_unpaid(member): mailtext = mailtext.replace("NOM_COTISANT", name) mailtext = mailtext.replace("NUMERO_MEMBRE", str(numero)) mailtext = mailtext.replace("MONTANT_COTISATION", amount) - mailheaders = get_file_content_all(MODALITY_MAIL_HEADERS).replace("ANNEE_CIVILE", year) + mailheaders = get_file_content_all(MODALITY_MAIL_HEADERS) + "\n" + mailheaders = mailheaders.replace("ANNEE_CIVILE", year) mailheaders = mailheaders.replace("COURRIEL-COTISANT", email) sendmail(mailheaders, mailtext)