| Modifier and Type | Method and Description |
|---|---|
String |
applyTemplate(String templateLocation,
Map<?,?> model)
Applies template to the model and returns result
|
static SmtpMessenger |
create(String smtpHost,
Integer smtpPort,
TransportSecurity transportSecurity,
String username,
String password,
Integer socketFactoryPort,
String from,
String replyTo,
MessageTemplateProvider templateProvider,
Map<String,Object> defaultModel,
org.apache.velocity.app.VelocityEngine velocityEngine)
Creates new instance.
|
void |
send(String target,
Message message)
Sends message.
|
String |
toString() |
public void send(String target, Message message)
Messengerpublic String applyTemplate(String templateLocation, Map<?,?> model)
templateLocation - template locationmodel - modelpublic static SmtpMessenger create(String smtpHost, Integer smtpPort, TransportSecurity transportSecurity, String username, String password, Integer socketFactoryPort, String from, String replyTo, MessageTemplateProvider templateProvider, Map<String,Object> defaultModel, org.apache.velocity.app.VelocityEngine velocityEngine)
smtpHost - SMTP serversmtpPort - SMTP server porttransportSecurity - security which is used to transport emailusername - user name for login to SMTP serverpassword - password for login to SMTP serversocketFactoryPort - port for the socketfrom - from addressreplyTo - reply to addresstemplateProvider - provider for message templatesdefaultModel - model accessible always in all templatesvelocityEngine - velocity engineCopyright © 2016. All rights reserved.