Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add automatic admittance emails after admitting users #165

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add automatic admittance emails after admitting users #165

wants to merge 1 commit into from

Conversation

nadavsu
Copy link

@nadavsu nadavsu commented Apr 21, 2021

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@919fa1e) 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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.

Also, fixed some spelling mistakes in the comments.

When an admin admits a participant using the admin page, the application sends an automatic email to the admittee in a similar manner to the verification emails.

This is done by using the email-link-action template in `server/emails/email-link-action/html.pug

Also, fixed some spelling mistakes in the comments.
@nadavsu nadavsu changed the title Adding automatic confirmation emails after admitting users Adding automatic admittance emails after admitting users Apr 21, 2021
@nadavsu nadavsu changed the title Adding automatic admittance emails after admitting users Add automatic admittance emails after admitting users Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant