alert through email when a message failed