fix mailer for courses