csmberkeley / scheduler

For managing our students, mentors, and sections
MIT License
8 stars 5 forks source link

Send reminder to mentors to do their pending requests #29

Open attang opened 8 years ago

attang commented 8 years ago

A weekly reminder to mentors who still have pending requests will help attendance stay updated.

I'd recommend looking into the whenever gem and using our current email system to send emails. To check for pending requests, each attendance object has a enum variable that holds the current status of the attendance object. Loop through each mentor, check each student if they have a pending request, and add them to a running list mentor list. Then loop through the mentor list and send an email using the built-in ActionMailer.

Relevant Stack-Overflow post: http://stackoverflow.com/questions/13672560/send-email-every-week-with-whenever

To work with emails on development, you'll have to install mailcatcher on your computer.

attang commented 8 years ago

This one seems kinda hard to start off, so I'll be working on this with you.