fixing sending emails for past classes
Merge branch 'master' into pinauthintegration