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

Forum email notifications #462

Open
wabscale opened this issue Jul 9, 2023 · 0 comments
Open

Forum email notifications #462

wabscale opened this issue Jul 9, 2023 · 0 comments
Assignees
Labels

Comments

@wabscale
Copy link
Collaborator

wabscale commented Jul 9, 2023

Here is the most delicate part of the whole thing. Email notifications are a dangerous thing. If you make a small mistake you can accidentially send emails off to hundreds of people if you are not careful. No pressure lol

We will need to have a few boolean values added to the user table for things like:

  • is_new_post_notification_enabled # For each new post
  • is_comment_notification_enabled # For followup comments
  • is_instructor_post_notification_enabled # For when a TA/Professor posts

We can then send emails in RPC jobs. Nothing fancy needed, we already have the logic for sending emails. We will need email templates written for the different types of events too. We can follow the existing models:

This is the Subject and Body for the assignment release email for reference:

Anubis LMS :: {{ assignment.name }} has been released
<p>
Hello {{ user.netid }},
</p>

<p>
An assignment has been released on 
<a href="https://anubis-lms.io/dashboard">
Anubis.
</a>
</p>

<p>
Course: {{ course.name }} <br>
Assignment: {{ assignment.name }} <br>
Due Date: {{ assignment.due_date }}
</p>

<p>
To stop reciving emails from anubis, edit your
notification preferences on your profile page: 
<a href="https://anubis-lms.io/profile">
https://anubis-lms.io/profile
</a>
</p>

<p>
- <i>Anubis LMS Robot</i><br>
<small><i>Made for students, by students.</i></small>
</p>

And where we actually send the emails:

@wabscale wabscale self-assigned this Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

1 participant