|
void | addMessage (String email, String message) |
|
void | sendIt (String subject, String implementation) |
|
- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 29 of file MessagePool.java.
◆ addMessage()
void org.turro.mail.impl.MessagePool.addMessage |
( |
String |
email, |
|
|
String |
message |
|
) |
| |
Definition at line 31 of file MessagePool.java.
32 String msg =
get(email);
33 put(email, (msg !=
null ? msg + message : message));
◆ sendIt()
void org.turro.mail.impl.MessagePool.sendIt |
( |
String |
subject, |
|
|
String |
implementation |
|
) |
| |
Definition at line 36 of file MessagePool.java.
37 MailPool mp = (MailPool) HeadlessApplication.getInstance().getImplementation(implementation);
39 mp.setEncoding(ElephantContext.getEncoding());
40 mp.addCssFile(ElephantContext.getRealPath(
"/_internal/css/mail.css"));
41 for(String key : keySet()) {
42 if(!Strings.isBlank(
get(key))) {
43 mp.addToPool(
null, key,
null, subject,
get(key),
"text/html");
The documentation for this class was generated from the following file: