controle_cotisation/main.py: fix calling the right sendmail function
This commit is contained in:
parent
38c31ad423
commit
babd3d1688
|
@ -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__':
|
||||
|
|
Loading…
Reference in New Issue