19 package org.turro.entities;
21 import java.io.IOException;
22 import java.util.logging.Level;
23 import java.util.logging.Logger;
24 import org.apache.commons.mail.EmailException;
25 import org.turro.assistant.Assistant;
26 import org.turro.assistant.AssistantSet;
27 import org.turro.elephant.context.ElephantContext;
28 import org.turro.elephant.context.HeadlessApplication;
29 import org.turro.elephant.context.IConstructor;
30 import org.turro.elephant.entities.db.Sendable;
31 import org.turro.mail.message.MailMessageTemplate;
32 import org.turro.mail.pool.MailMessagePool;
33 import org.turro.mail.provider.MailProviders;
34 import org.turro.marker.ElephantMarker;
35 import org.turro.newsletter.NewsletterTemplate;
36 import org.turro.publication.entity.Newsletter;
37 import org.turro.sendable.AbstractSendable;
38 import org.turro.sendable.Sendables;
65 }
catch (IOException | EmailException ex) {
static String logMsg(String msg)
NewsletterSendable(String entityPath)
void addAssistants(AssistantSet as, Newsletter entity)
NewsletterSendable(Newsletter entity)
boolean doSend(Sendable sendable, Newsletter entity, IConstructor constructor, AssistantSet assistants, boolean checkSent)
MailMessage addToPool(String from, String to, String cc, String subject, String message)
static MailProviders instance()
MailMessagePool getPool(IConstructor constructor, String name)
static boolean existsTemplate(IConstructor constructor, boolean mail, String root, String name)
void resetGlobalContext()
static void delivered(String entityPath, String contactId)