Added error message when trying to send mail to AM and it failed.