send email if not error