Fixed email sending bug. Now can send email to all active course participants.