|
MailMessage | addToPoolTemplate (String from, String to, String cc, String subject, String message, String template, String name, String login) |
|
MailMessage | addToPoolTemplate (String from, String to, String cc, String subject, String message, String template, String name, String login, Map args) |
|
MailMessage | addToPool (String from, String to, String cc, String subject, String message) |
|
MailMessage | addToPool (MailMessage mail) throws EmailException |
|
void | sendPool () |
|
void | sendPool (Consumer onFinish) |
|
MailProvider | getProvider () |
|
| MailMessagePool (IConstructor constructor, MailProvider provider) |
|
◆ MailMessagePool()
◆ addToPool() [1/2]
Definition at line 94 of file elephant-mail/src/main/java/org/turro/mail/pool/MailMessagePool.java.
96 mail.addHeader(
"X-Mailer",
"Elephant Mail System");
97 mail.setSentDate(date);
98 mail.setSubject(cleanSubject(mail.getSubject()));
102 WebLoggers.info(
this).message(
"Added mail from %s to %s. Subject: %s",
103 mail.getProvider().getFrom().getMail(),
104 InternetAddress.toString((InternetAddress[]) mail.getEmail().getToAddresses().toArray(
new InternetAddress[0])),
109 }
catch(Exception ex) {
110 WebLoggers.severe(
this).exception(ex).log();
◆ addToPool() [2/2]
MailMessage org.turro.mail.pool.MailMessagePool.addToPool |
( |
String |
from, |
|
|
String |
to, |
|
|
String |
cc, |
|
|
String |
subject, |
|
|
String |
message |
|
) |
| |
Definition at line 75 of file elephant-mail/src/main/java/org/turro/mail/pool/MailMessagePool.java.
80 MailMessage mail = MailMessage.of(provider);
85 mail.setSubject(subject);
86 mail.setMessage(message);
88 }
catch (EmailException ex) {
89 WebLoggers.severe(
this).exception(ex).log();
MailMessage addToPool(String from, String to, String cc, String subject, String message)
◆ addToPoolTemplate() [1/2]
MailMessage org.turro.mail.pool.MailMessagePool.addToPoolTemplate |
( |
String |
from, |
|
|
String |
to, |
|
|
String |
cc, |
|
|
String |
subject, |
|
|
String |
message, |
|
|
String |
template, |
|
|
String |
name, |
|
|
String |
login |
|
) |
| |
Definition at line 44 of file elephant-mail/src/main/java/org/turro/mail/pool/MailMessagePool.java.
46 return addToPoolTemplate(from, to, cc, subject, message,
template, name, login,
null);
MailMessage addToPoolTemplate(String from, String to, String cc, String subject, String message, String template, String name, String login)
◆ addToPoolTemplate() [2/2]
MailMessage org.turro.mail.pool.MailMessagePool.addToPoolTemplate |
( |
String |
from, |
|
|
String |
to, |
|
|
String |
cc, |
|
|
String |
subject, |
|
|
String |
message, |
|
|
String |
template, |
|
|
String |
name, |
|
|
String |
login, |
|
|
Map |
args |
|
) |
| |
Definition at line 49 of file elephant-mail/src/main/java/org/turro/mail/pool/MailMessagePool.java.
55 MailMessageTemplate mmt = MailMessageTemplate.of(provider);
56 mmt.setSubject(subject);
61 ElephantMarker em =
new ElephantMarker(constructor,
true);
63 em.put(
"body", message);
67 mmt.setMessage(em,
template, to, name);
69 }
catch (EmailException ex) {
70 WebLoggers.severe(
this).exception(ex).log();
◆ getProvider()
MailProvider org.turro.mail.pool.MailMessagePool.getProvider |
( |
| ) |
|
◆ of()
◆ sendPool() [1/2]
void org.turro.mail.pool.MailMessagePool.sendPool |
( |
| ) |
|
◆ sendPool() [2/2]
void org.turro.mail.pool.MailMessagePool.sendPool |
( |
Consumer |
onFinish | ) |
|
The documentation for this class was generated from the following file: