// Load up configuration information
Properties props = loadProperties("mail.properties", true);
// Create mail notification
MailNotificationImpl mail = null;
try {
MailDeliveryImpl mailDelivery = new MailDeliveryImpl();
mailDelivery.setMailProperties(props);
servletContext.setAttribute(MailDelivery.ConfigAttributeName_MailDelivery, mailDelivery);
mail = new MailNotificationImpl(atlasName, mailDelivery, couchDb);
mail.setMailProperties(props);
} catch(Exception e) {
logger.error("Unable to configure mail notification",e);
}