args[2] = RequestContext.resolveBaseContextPath((HttpServletRequest) context.getServletRequest());
String sSubject = msgBroker.retrieveMessage("identity.feedback.email.subject");
sBody = msgBroker.retrieveMessage("identity.feedback.email.body",args);
// send the message to the site
MailRequest mailReq = appConfig.getMailConfiguration().newInboundRequest();
mailReq.setFromAddress(sEmail);
mailReq.setSubject(sSubject);
mailReq.setBody(sBody);
mailReq.send();
// send a copy of the message to the user
MailRequest mailReqCopy = appConfig.getMailConfiguration().newOutboundRequest();
mailReqCopy.setToAddress(sEmail);
mailReqCopy.setSubject(sSubject);
mailReqCopy.setBody(sBody);
mailReqCopy.send();
// add the success message, set the navigation outcome
msgBroker.addSuccessMessage("identity.feedback.success");
setNavigationOutcome(ResourceKeys.NAVIGATIONOUTCOME_HOME_DIRECT);
}