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)
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
Also, fixed some spelling mistakes in the comments.
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](https://user-images.githubusercontent.com/53123142/115600191-15b00600-a2e5-11eb-840e-990641da74f6.png)
Types of changes
Checklist
Also, fixed some spelling mistakes in the comments.