fixing sending emails for past classes
Merge pull request #208 from apatel/master

fixing sending emails for past classes