include the url in the email

This commit is contained in:
Deadswitch
2021-01-07 18:51:33 -06:00
parent 61ac649fb1
commit 1a05b85d19

View File

@@ -31,7 +31,11 @@ def sendMail(topic,toAddr):
server=smtplib.SMTP("localhost", port) server=smtplib.SMTP("localhost", port)
sender_email = "deadswitch@kawomi.com" sender_email = "deadswitch@kawomi.com"
receiver_email = toAddr 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) server.sendmail(sender_email, receiver_email, message)