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__':