if (!userLogged.isMailVerified()) {
addWOJMessages(request, RessourceBundleApplicationMessage.info("woj.page.user.points.email.not.verified", new Object[] {request.getContextPath()}));
return "show.user.points";
}
ClearableDynaValidatorActionForm f = (ClearableDynaValidatorActionForm)form;
String email = (String)f.get(Params.FIDELITY_OFFERS.SHOW_USER_POINTS.SPREAD_WOJ.PARAMS.EMAILS);
String message = (String)f.get(Params.FIDELITY_OFFERS.SHOW_USER_POINTS.SPREAD_WOJ.PARAMS.MESSAGE);
message = message.replaceAll(System.getProperty("line.separator"), "<br />");
Portal.getInstance().getMailService().asyncSendMail(Portal.getInstance().getMailFactory().createSpreadWOJMail(userLogged, email, message));
LOGGER.info("sent spread mail from " + userLogged.getEmail() + " to " + email);