return RemoteGateway.apply(new SpringBasedEmailService(emailSenderConfiguration(), getTemplateEngine()), "Email notification sender");
}
public TemplateEngine getTemplateEngine() {
String templateFolder = getConfig().get(NotificationPluginConfig.templateFolder);
TemplateEngine templateEngine;
templateEngine = new VelocityTemplateEngine(templateFolder);
return templateEngine;
}