|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.liquidsite.util.mail.MailMessage
org.liquidsite.util.mail.SimpleMailMessage
An email message. This class is used for creating email messages for the outgoing mail queue. Even though a message is registered with multiple recipients, a single unique message will be sent to each of the recipients.
| Constructor Summary | |
SimpleMailMessage()
Creates a new empty mail message. |
|
| Method Summary | |
void |
addRecipients(java.lang.String recipients)
Adds a list of message recipients. |
protected javax.mail.internet.MimeMessage |
getNextMessage(javax.mail.Session session)
Creates the next Java mail MIME message from this mail message. |
java.lang.String |
getRecipient()
Returns a string representation of the message recipient. |
java.lang.String |
getRecipients()
Returns a string representation of the list of message recipients. |
protected boolean |
hasMoreMessages()
Checks if there remains any Java mail MIME messages to generate. |
boolean |
isValid()
Checks if this message is valid. |
void |
setRecipients(java.lang.String recipients)
Sets the list of message recipients. |
java.lang.String |
toString()
Returns a string representation of this mail message. |
| Methods inherited from class org.liquidsite.util.mail.MailMessage |
createMessage, getAttribute, getAttributeNames, getFrom, getFromAddress, getReplyTo, getReplyToAddress, getSubject, getText, setAttribute, setFrom, setReplyTo, setSubject, setText |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SimpleMailMessage()
| Method Detail |
public java.lang.String toString()
public boolean isValid()
isValid in class MailMessagepublic java.lang.String getRecipient()
getRecipient in class MailMessagepublic java.lang.String getRecipients()
public void setRecipients(java.lang.String recipients)
throws MailMessageException
recipients - the message recipient addresses
MailMessageException - if the list of message recipient
addresses wasn't possible to parse correctly
public void addRecipients(java.lang.String recipients)
throws MailMessageException
recipients - the message recipient addresses
MailMessageException - if the list of message recipient
addresses wasn't possible to parse correctlyprotected boolean hasMoreMessages()
hasMoreMessages in class MailMessage
protected javax.mail.internet.MimeMessage getNextMessage(javax.mail.Session session)
throws MailMessageException
getNextMessage in class MailMessagesession - the Java mail session
MailMessageException - if the message couldn't be
created correctly
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||