From babd3d1688315b8c091af6735c7c7484143104de Mon Sep 17 00:00:00 2001 From: "Adrien Bourmault (neox)" Date: Mon, 16 Sep 2024 17:09:11 +0200 Subject: [PATCH] controle_cotisation/main.py: fix calling the right sendmail function --- controle_cotisation/main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/controle_cotisation/main.py b/controle_cotisation/main.py index 6c8a168..9a865d6 100755 --- a/controle_cotisation/main.py +++ b/controle_cotisation/main.py @@ -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__':