techx / quill

📝 Registration, for hackathons!
https://medium.com/hackmit-stories/quill-an-open-source-hackathon-registration-system-91f3a06d22a2
GNU Affero General Public License v3.0
443 stars 342 forks source link

Add automatic admittance emails after admitting users #165

Open nadavsu opened 3 years ago

nadavsu commented 3 years ago

Description

When an admin admits users in the admin page, the application sends an automatic email to the admittees notifying them that they have been admitted to hackathon and that they should continue to the confirmation stage.

Motivation and Context

Before this PR, there was no way for the users to know that they have been admitted, unless they constantly checked their application status, or the admin has manually sent them an email notifying them about their application state. This PR solves this issue by automatically sending an admittance email, notifying the participant that he/she has been admitted.

How Has This Been Tested

Was at first tested locally using a real email and gmail's smtp server. Once tested thoroughly locally, this improvement was added to mtahack's fork (mtahack/quill@919fa1e15168291a5b15c2a9e6f23c70575aad58) and worked without any bugs for 120 participants.

Tested on macOS and Windows locally. Tested on Heroku. Works even after confirming a user many times.

Screenshots

Screenshot of the confirmation email (with .env settings set to MTA Hack 2021) Screen Shot 2021-04-21 at 21 02 47

Types of changes

Checklist

Also, fixed some spelling mistakes in the comments.