receiver list

This commit is contained in:
Wolfgang Hottgenroth 2017-12-06 23:31:31 +01:00
parent a8b32fd3f3
commit 786521c7c5

View File

@ -10,7 +10,7 @@ def sendmail(sender, receiver, msg):
smtp = None
try:
smtp = smtplib.SMTP("localhost")
smtp.sendmail("nobody@hotti.de", receiver, msg);
smtp.sendmail("nobody@hotti.de", (receiver), msg);
except SMTPException:
print("Fehler beim Senden der Mail an {0}".format(self.name))
raise Exception("Nochmal von vorne")