fix: Send emails properly
Forgot to include the bit that sent the emails
This commit is contained in:
parent
97ade1f2e3
commit
181d35cbca
1 changed files with 2 additions and 0 deletions
|
@ -123,6 +123,7 @@ def drop(id):
|
||||||
msg.add_recipient(user.email)
|
msg.add_recipient(user.email)
|
||||||
msg.sender = ("GoatHacks Team", "hack@wpi.edu")
|
msg.sender = ("GoatHacks Team", "hack@wpi.edu")
|
||||||
msg.body = render_template("emails/dropped.txt", user=user)
|
msg.body = render_template("emails/dropped.txt", user=user)
|
||||||
|
mail.send(msg)
|
||||||
|
|
||||||
db.session.delete(user)
|
db.session.delete(user)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
@ -171,6 +172,7 @@ def promote_waitlist(id):
|
||||||
msg.add_recipient(user.email)
|
msg.add_recipient(user.email)
|
||||||
msg.sender = ("GoatHacks Team", "hack@wpi.edu")
|
msg.sender = ("GoatHacks Team", "hack@wpi.edu")
|
||||||
msg.body = render_template("emails/waitlist_promotion.txt", user=user)
|
msg.body = render_template("emails/waitlist_promotion.txt", user=user)
|
||||||
|
mail.send(msg)
|
||||||
|
|
||||||
return {"status": "success"}
|
return {"status": "success"}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue