Added error messages for email sending