String messageBody =
RenderUtils.getFormatedResourceString("ALUMNI_RESOURCES", "message.alumni.mail.person.data", mailArgs);
mailBody.append(messageBody);
mailBody.append("\n\n").append(BundleUtil.getString(Bundle.ALUMNI, "message.alumni.mail.body.footer"));
EMail email = null;
try {
if (!request.getServerName().equals("localhost")) {
email = new EMail("mail.adm", "erro@dot.ist.utl.pt");
String aluminiEmailAddress = Installation.getInstance().getInstituitionalEmailAddress("alumni");
email.send(aluminiEmailAddress, "Erro Registo Alumni", mailBody.toString());
}
} catch (Throwable t) {
logger.error(t.getMessage(), t);
throw new Error(t);
}