From 181d35cbcaf2bac437b0ebaf94ac42d86f094178 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Tue, 6 Dec 2022 17:57:01 -0500 Subject: [PATCH] fix: Send emails properly Forgot to include the bit that sent the emails --- goathacks/admin/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/goathacks/admin/__init__.py b/goathacks/admin/__init__.py index 58dafea..40e2290 100644 --- a/goathacks/admin/__init__.py +++ b/goathacks/admin/__init__.py @@ -123,6 +123,7 @@ def drop(id): msg.add_recipient(user.email) msg.sender = ("GoatHacks Team", "hack@wpi.edu") msg.body = render_template("emails/dropped.txt", user=user) + mail.send(msg) db.session.delete(user) db.session.commit() @@ -171,6 +172,7 @@ def promote_waitlist(id): msg.add_recipient(user.email) msg.sender = ("GoatHacks Team", "hack@wpi.edu") msg.body = render_template("emails/waitlist_promotion.txt", user=user) + mail.send(msg) return {"status": "success"}