Updated mailing.py
This commit is contained in:
pare
aa6df1b616
commit
3061295718
S'han modificat 1 arxius amb 3 adicions i 5 eliminacions
|
@ -316,14 +316,12 @@ try:
|
||||||
fp = open('message.txt')
|
fp = open('message.txt')
|
||||||
text = fp.read()
|
text = fp.read()
|
||||||
message = MIMEText(text)
|
message = MIMEText(text)
|
||||||
|
fp.close()
|
||||||
|
|
||||||
except:
|
except:
|
||||||
|
|
||||||
print("message.txt file not found! Create it and write in the message you want for your inactive users.")
|
print("message.txt file not found! Create it and write in the message you want for your inactive users.")
|
||||||
|
sys.exit(0)
|
||||||
finally:
|
|
||||||
|
|
||||||
fp.close()
|
|
||||||
|
|
||||||
i = 0
|
i = 0
|
||||||
while i < len(inactive_email):
|
while i < len(inactive_email):
|
||||||
|
|
Loading…
Referencia en una nova incidència