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"
|
mailheaders = get_file_content_all(SUMMARY_MAIL) + "\n"
|
||||||
mailtext = ""
|
mailtext = ""
|
||||||
|
|
||||||
is_sendable = False;
|
is_sendable = False
|
||||||
for line in BUF:
|
for line in BUF:
|
||||||
mailtext += line + "\n"
|
mailtext += line + "\n"
|
||||||
is_sendable = True;
|
is_sendable = True
|
||||||
print(line)
|
print(line)
|
||||||
|
|
||||||
if is_sendable:
|
if is_sendable:
|
||||||
sendmail(mailheaders, mailtext)
|
# Assuming no attachment is needed for the summary mail
|
||||||
|
sendmail_with_attachment(mailheaders, mailtext, None, None)
|
||||||
|
|
||||||
## Bootstrap
|
## Bootstrap
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in New Issue