fix: Send emails properly

Forgot to include the bit that sent the emails
This commit is contained in:
Cara Salter 2022-12-06 17:57:01 -05:00
parent 97ade1f2e3
commit 181d35cbca
No known key found for this signature in database
GPG key ID: 90C66610C82B29CA

View file

@ -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"}