From 1a05b85d19033c81ae94a732a8283f25f3c8875d Mon Sep 17 00:00:00 2001 From: Deadswitch Date: Thu, 7 Jan 2021 18:51:33 -0600 Subject: [PATCH] include the url in the email --- api1.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api1.py b/api1.py index 007e1ae..ddf03af 100644 --- a/api1.py +++ b/api1.py @@ -31,7 +31,11 @@ def sendMail(topic,toAddr): server=smtplib.SMTP("localhost", port) sender_email = "deadswitch@kawomi.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}. + + https://deadswitch.kawomi.com/api/v1?topic={topic} + + """ server.sendmail(sender_email, receiver_email, message)