Only send completion email if credit is earned after taking quiz.

Make abstract method to get email class.