From 79d5a6f1124eb73d87ecd28e9090818c5c5f1bb3 Mon Sep 17 00:00:00 2001 From: b3yond Date: Sun, 7 Oct 2018 21:02:48 +0200 Subject: [PATCH] fixed sendmail calls --- frontend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend.py b/frontend.py index 8ae5273..6acf3f4 100755 --- a/frontend.py +++ b/frontend.py @@ -45,7 +45,7 @@ def register_post(): sendmail( email, "Confirm your account", - "Complete your registration here: %s" % (link) + body="Complete your registration here: %s" % (link) ) return dict(info='Confirmation mail sent.') except Exception: @@ -105,7 +105,7 @@ def subscribe_mail(city): # send mail with code to email sendmail(email, "Subscribe to Ticketfrei " + city + " Mail Notifications", body="To subscribe to the mail notifications for Ticketfrei " + - city + ", click on this link: " + confirm_link) + city + ", click on this link: " + confirm_link, city=city) return city_page(city, info="Thanks! You will receive a confirmation mail.")