public class SendMailEngine extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
private String |
_htmlBody |
private static Logger |
_logger |
private boolean |
_parametrized |
private Map<String,String> |
_recipients |
private static Random |
_RNG |
private String |
_sender |
private String |
_subject |
private String |
_textBody |
Constructor and Description |
---|
SendMailEngine() |
Modifier and Type | Method and Description |
---|---|
private void |
_checkParametrization() |
void |
parameterize(String subject,
String htmlBody,
String textBody,
Map<String,String> recipients,
String sender)
Parameterize engine
|
void |
run() |
private Map<String,String> _recipients
private boolean _parametrized
public SendMailEngine()
public void parameterize(String subject, String htmlBody, String textBody, Map<String,String> recipients, String sender)
subject
- The mail subjecthtmlBody
- The mail body in HTML formattextBody
- The mail body in text formatrecipients
- The recipient addressessender
- The sender addressprivate void _checkParametrization()