fix non-dynamic e-mail address.

This commit is contained in:
Deadswitch
2020-11-02 12:03:28 -06:00
parent 80842aae98
commit 3c93038231

View File

@@ -30,7 +30,7 @@ def sendMail(topic,toAddr):
port = 25 port = 25
server=smtplib.SMTP("localhost", port) server=smtplib.SMTP("localhost", port)
sender_email = "deadswitch@kawomi.com" sender_email = "deadswitch@kawomi.com"
receiver_email = "joerg.tretter@gmail.com" receiver_email = toAddr
message = f"""Subject: deadSwitch not pushed on topic {topic}\n\nNotification of deadSwitch not pushed on topic {topic}.""" message = f"""Subject: deadSwitch not pushed on topic {topic}\n\nNotification of deadSwitch not pushed on topic {topic}."""
server.sendmail(sender_email, receiver_email, message) server.sendmail(sender_email, receiver_email, message)