added email sending error message