From 3c930382312eafc3bcb479a6f771f73d9c892ead Mon Sep 17 00:00:00 2001 From: Deadswitch Date: Mon, 2 Nov 2020 12:03:28 -0600 Subject: [PATCH] fix non-dynamic e-mail address. --- api1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api1.py b/api1.py index e0858e3..dc81ecc 100644 --- a/api1.py +++ b/api1.py @@ -30,7 +30,7 @@ def sendMail(topic,toAddr): port = 25 server=smtplib.SMTP("localhost", port) 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}.""" server.sendmail(sender_email, receiver_email, message)