ealong / Trilogy-Tutor-Auto-Emailer

10 stars 7 forks source link

Trilogy Tutor Auto-Confirmation Emailer

by Earnest Long, Jr., Senior Data Visualization Tutor

Description:

A simple script that automates sending confirmation emails to students that have tutoring sessions scheduled for the next day.

The script uses the Gmail, Google Calendar, and Google Sheets APIs to 1) extract the events, 2) identify each student's email and timezone, 3) construct emails with the appropriate names, dates, and times, and 4) send the emails.

Requirements:

Installation:

  1. Clone the repository and pip install the requirements (in terminal, navigate to folder then run 'pip install -r requirements.txt' (or 'pip3 install -r requirements.txt' if you have multiple versions of Python installed).

  2. Enable the Gmail, Google Calendar, and Google Sheets APIs in your Google account.

  3. Create the following:

    1. A file named config.py declaring the variables shown in config_example.py. Follow the comments in config_example.py to set up your script variables appropriately.
    2. A file named msg_template.html that contains the HTML email message with customizable Template variables (docs here: https://docs.python.org/2.4/lib/node109.html) as seen in msg_template_example.html.

    Usage:

There are a few options for running the script:

Notes:

Thanks!