fix sendmail

This commit is contained in:
Adrien Bourmault 2024-09-16 17:18:51 +02:00
parent e1b20eca87
commit 81c71413ab
Signed by: neox
GPG Key ID: 57BC26A3687116F6
1 changed files with 2 additions and 2 deletions

View File

@ -301,7 +301,7 @@ def notify_unpaid(member):
mailheaders = mailheaders.replace("ANNEE_CIVILE", year) mailheaders = mailheaders.replace("ANNEE_CIVILE", year)
mailheaders = mailheaders.replace("COURRIEL-COTISANT", email) mailheaders = mailheaders.replace("COURRIEL-COTISANT", email)
sendmail(mailheaders, mailtext) sendmail_with_attachment(mailheaders, mailtext, None, None)
return True return True
def renotify_unpaid(member): def renotify_unpaid(member):
@ -327,7 +327,7 @@ def renotify_unpaid(member):
mailheaders = mailheaders.replace("COURRIEL-COTISANT", email) mailheaders = mailheaders.replace("COURRIEL-COTISANT", email)
mailheaders = mailheaders.replace("Modalit", "Rappel_:_modalit") mailheaders = mailheaders.replace("Modalit", "Rappel_:_modalit")
sendmail(mailheaders, mailtext) sendmail_with_attachment(mailheaders, mailtext, None, None)
def check_expired_unpaid(): def check_expired_unpaid():
expired_members = gestion_get_expired() expired_members = gestion_get_expired()