fix send_email, catch exceptions