add error message if send mail failed.