Skip to content

Implement email notification functionality

Amy Ceesay Lopez requested to merge 31-implement-email-notifications into main

Closes #31 (closed)

Changes made:

  • Added insert statements to 'Database.py' to insert more sample users into the 'User' table.
  • Added a function in 'query.py' to query the database for emails of users who are subscribed to the "Quote of the Day" service.
  • Created 'EmailTemplate.py' to generate the body of the email with a given quote and author.
  • Created 'EmailNotifier.py' to send the email containing a randomly selected quote to all subscribed users.

Screenshot of sample email:

image

Merge request reports