errors.append("<p>").append(trans.translate("mailhelper.error.attachment")).append("</p>");
} else {
// mail could be send, but maybe not to all the users (e.g. invalid mail
// adresses or a temporary problem)
if (failedIdentites != null && failedIdentites.size() > 0) {
warnings.append("<p>").append(trans.translate("mailhelper.error.failedusers"));
warnings.append("<ul>");
for (Identity identity : failedIdentites) {
User user = identity.getUser();
warnings.append("<li>");
warnings.append(trans.translate("mailhelper.error.failedusers.user", new String[] { user.getProperty(UserConstants.FIRSTNAME, null), user.getProperty(UserConstants.LASTNAME, null),