public class ERMailer extends Object
Name | Description |
---|---|
er.javamail.mailer.ERMailer.WarnOnGeneralAdaptorExceptionLockingMessage | er.javamail.mailer.ERMailer.WarnOnGeneralAdaptorExceptionLockingMessage |
er.javamail.mailer.ERMailer.ShouldDeleteSentMail | er.javamail.mailer.ERMailer.ShouldDeleteSentMail |
Modifier and Type | Class and Description |
---|---|
static class |
ERMailer.DefaultFactory
Default factory.
|
static interface |
ERMailer.Factory |
Modifier and Type | Field and Description |
---|---|
protected static ERMailer.Factory |
factory |
protected static ERMailer |
instance
holds a reference to the shared instance
|
protected String |
messageTitlePrefix
Caches the message title prefix
|
Constructor and Description |
---|
ERMailer() |
Modifier and Type | Method and Description |
---|---|
ERMailDelivery |
createMailDeliveryForMailMessage(ERCMailMessage message)
Creates a ERMailDelivery for a given
MailMessage.
|
static ERMailer.Factory |
factory()
Gets the current factory.
|
static ERMailer |
instance()
Gets the shared mailer instance.
|
String |
messageTitlePrefix()
The message title prefix is used to distiguish emails generated in different environments.
|
static ERMailer |
newMailer()
Instantiates a new mailer instance using the factory and returns it.
|
void |
processOutgoingMail()
Fetches all mail that is ready to
be sent from the ERMailMessage table
and sends the message using the
ERJavaMail framework for sending
messages.
|
void |
sendMailMessages(NSArray mailMessages)
Sends an array of ERCMailMessage objects.
|
static void |
setFactory(ERMailer.Factory value)
Sets the factory.
|
protected static boolean |
shouldDeleteSentMail() |
protected static ERMailer instance
protected static ERMailer.Factory factory
protected String messageTitlePrefix
public static ERMailer.Factory factory()
public static void setFactory(ERMailer.Factory value)
value
- new factory valuepublic static ERMailer newMailer()
protected static boolean shouldDeleteSentMail()
public static ERMailer instance()
public void processOutgoingMail()
public void sendMailMessages(NSArray mailMessages)
mailMessages
- array of messages to sendpublic ERMailDelivery createMailDeliveryForMailMessage(ERCMailMessage message) throws javax.mail.MessagingException
message
- mail messagejavax.mail.MessagingException
public String messageTitlePrefix()
Copyright © 2002 – 2020 Project Wonder.