send email on class