send errors to email in config