controle_cotisation/main.py: fix calling the right sendmail function

This commit is contained in:
Adrien Bourmault 2024-09-16 17:09:11 +02:00
parent 38c31ad423
commit babd3d1688
Signed by: neox
GPG Key ID: 57BC26A3687116F6
1 changed files with 4 additions and 3 deletions

View File

@ -487,14 +487,15 @@ def main():
mailheaders = get_file_content_all(SUMMARY_MAIL) + "\n"
mailtext = ""
is_sendable = False;
is_sendable = False
for line in BUF:
mailtext += line + "\n"
is_sendable = True;
is_sendable = True
print(line)
if is_sendable:
sendmail(mailheaders, mailtext)
# Assuming no attachment is needed for the summary mail
sendmail_with_attachment(mailheaders, mailtext, None, None)
## Bootstrap
if __name__ == '__main__':