String emailPassword = data.get("ice.email.password");
String useSSL = data.get("ice.email.usessl");
if (useSSL == null || useSSL.isEmpty()) {
useSSL = "false";
}
Mail mail = new Mail();
mail.setup(emailServer, emailPort, useSSL, emailUsername,
emailPassword);
RegistryFactory.getRegistry().set("config.mail", mail);
}
}