|
Project Wonder 2.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object er.javamail.mailer.ERMailer
Mailer bridge class. Used to pull mail out of the ERMailMessage entity and send it via the ERJavaMail framework for sending mail.
Field Summary | |
protected static ERMailer |
instance
holds a reference to the shared instance |
static ERXLogger |
log
logging support |
protected String |
messageTitlePrefix
Caches the message title prefix |
Constructor Summary | |
ERMailer()
|
Method Summary | |
ERMailDelivery |
createMailDeliveryForMailMessage(ERCMailMessage message)
Creates a ERMailDelivery for a given MailMessage. |
static ERMailer |
instance()
Gets the shared mailer instance. |
String |
messageTitlePrefix()
The message title prefix is used to distiguish emails generated in different environments. |
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. |
protected static boolean |
shouldDeleteSentMail()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final ERXLogger log
protected static ERMailer instance
protected String messageTitlePrefix
Constructor Detail |
public ERMailer()
Method Detail |
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 message
javax.mail.MessagingException
public String messageTitlePrefix()
|
Last updated: Do, Dez 9, 2004 12:46 PM CET | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |