BrightSide Workbench Full Report + Source Code
org.turro.mail.impl.MessagePool Class Reference
Inheritance diagram for org.turro.mail.impl.MessagePool:
Collaboration diagram for org.turro.mail.impl.MessagePool:

Public Member Functions

void addMessage (String email, String message)
 
void sendIt (String subject, String implementation)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 29 of file MessagePool.java.

Member Function Documentation

◆ addMessage()

void org.turro.mail.impl.MessagePool.addMessage ( String  email,
String  message 
)

Definition at line 31 of file MessagePool.java.

31  {
32  String msg = get(email);
33  put(email, (msg != null ? msg + message : message));
34  }
Here is the caller graph for this function:

◆ sendIt()

void org.turro.mail.impl.MessagePool.sendIt ( String  subject,
String  implementation 
)

Definition at line 36 of file MessagePool.java.

36  {
37  MailPool mp = (MailPool) HeadlessApplication.getInstance().getImplementation(implementation);
38  if(mp != null) {
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");
44  }
45  }
46  mp.sendPool();
47  }
48  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: