Email error notification

added a return so failed email notifications can be passed back to the UI