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()