From 81c71413ab4f2390976eaca07974601bc2428aca Mon Sep 17 00:00:00 2001 From: "Adrien Bourmault (neox)" Date: Mon, 16 Sep 2024 17:18:51 +0200 Subject: [PATCH] fix sendmail --- controle_cotisation/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controle_cotisation/main.py b/controle_cotisation/main.py index c7fb007..aca8f06 100755 --- a/controle_cotisation/main.py +++ b/controle_cotisation/main.py @@ -301,7 +301,7 @@ def notify_unpaid(member): mailheaders = mailheaders.replace("ANNEE_CIVILE", year) mailheaders = mailheaders.replace("COURRIEL-COTISANT", email) - sendmail(mailheaders, mailtext) + sendmail_with_attachment(mailheaders, mailtext, None, None) return True def renotify_unpaid(member): @@ -327,7 +327,7 @@ def renotify_unpaid(member): mailheaders = mailheaders.replace("COURRIEL-COTISANT", email) mailheaders = mailheaders.replace("Modalit", "Rappel_:_modalit") - sendmail(mailheaders, mailtext) + sendmail_with_attachment(mailheaders, mailtext, None, None) def check_expired_unpaid(): expired_members = gestion_get_expired()