diff --git a/api1.py b/api1.py index 8ec6b9b..81c3365 100644 --- a/api1.py +++ b/api1.py @@ -31,10 +31,7 @@ def sendMail(topic,toAddr): server=smtplib.SMTP("localhost", port) sender_email = "deadswitch@kawomi.com" receiver_email = "joerg.tretter@gmail.com" - message = f"""\ - Subject: deadSwitch not pushed on topic {topic} - - Notification 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) @@ -82,7 +79,7 @@ if __name__ == '__main__': Examples: """ @@ -130,4 +127,4 @@ if __name__ == '__main__': return jsonify({'success':True, 'expiry':expiryDateTime.strftime("%Y-%m-%d %H:%M:%S"), 'email':email}) - app.run(use_reloader=False) \ No newline at end of file + app.run(use_reloader=False,port=5123)