|
boolean | doSend (Sendable sendable, Newsletter entity, IConstructor constructor, AssistantSet assistants, boolean checkSent) |
|
void | addAssistants (AssistantSet as, Newsletter entity) |
|
abstract boolean | doSend (Sendable sendable, T entity, IConstructor constructor, AssistantSet assistants, boolean checkSent) |
|
abstract void | addAssistants (AssistantSet as, T entity) |
|
◆ NewsletterSendable() [1/2]
org.turro.entities.NewsletterSendable.NewsletterSendable |
( |
Newsletter |
entity | ) |
|
◆ NewsletterSendable() [2/2]
org.turro.entities.NewsletterSendable.NewsletterSendable |
( |
String |
entityPath | ) |
|
◆ addAssistants()
◆ doSend()
Definition at line 55 of file NewsletterSendable.java.
56 if(ElephantMarker.existsTemplate(constructor,
true,
"envelope",
"header")) {
57 MailMessagePool pool = MailProviders.instance().getPool(constructor,
"Publication");
59 for(Assistant assistant : assistants) {
60 try (NewsletterTemplate nt =
new NewsletterTemplate(entity)) {
61 MailMessageTemplate mmt = nt.getMailMessage(pool, assistant.getContact());
64 if(checkSent) Sendables.delivered(sendable.getEntityPath(), assistant.contact.getId());
65 }
catch (IOException | EmailException ex) {
66 Logger.getLogger(
NewsletterSendable.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
69 entity.resetGlobalContext();
NewsletterSendable(Newsletter entity)
The documentation for this class was generated from the following file: