|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.common.CMMailMessage
This class is used for creating a message which can be used by the CMMailer for sending.
Constructor Summary | |
CMMailMessage()
Constructor. |
Method Summary | |
void |
addAttachment(File file)
Add an attachment file to this email. |
void |
addBCC(List addresses)
Add a BCC address to this message. |
void |
addBCC(String address)
Add a blind carbon copy address to this message. |
void |
addCC(List addresses)
Add a CC address to this message. |
void |
addReplyTo(List addresses)
Add a reply to address to this message. |
void |
addReplyTo(String address)
Add a reply to address to this message. |
void |
addTo(List addresses)
Add a To address to this message. |
void |
addTo(String address)
Sets the recipients of the message. |
List |
getAttachments()
Gets the attachment files of the message. |
List |
getBcc()
Gets the recipients of the message blind copy. |
String |
getBody()
Returns the body of the message. |
List |
getCc()
Gets the recipients of the message copy. |
String |
getContentType()
Gets the content type of this message. |
String |
getFrom()
Returns the message's from field. |
List |
getReplyTo()
Gets a list of address to reply to. |
String |
getSubject()
Returns the subject of the message. |
List |
getTo()
Gets the recipients of the message. |
boolean |
isAuthenticate()
Should we authenticate with the server before sending mail? Some SMTP servers require it while others don't. |
void |
setAttachments(List attachments)
Sets the attachment file names for the message. |
void |
setAuthenticate(boolean newMAuthenticate)
Should we authenticate with the server before sending mail? Some SMTP servers require it while others don't. |
void |
setBcc(List bcc)
Sets the recipients of the message blindcopy. |
void |
setBody(String body)
Sets the body of the message. |
void |
setCc(List cc)
Sets the recipients of the message copy. |
void |
setContentType(String contentType)
Sets the content type of this message. |
void |
setFrom(String from)
Sets the message's from field. |
void |
setReplyTo(List replyTo)
Sets the recipients of the message. |
void |
setSubject(String subject)
Sets the subject of the message. |
void |
setTo(List to)
Sets the recipients of the message. |
void |
setTo(String to)
Sets the recipients of the message. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CMMailMessage()
Method Detail |
public void addBCC(String address)
address
- public void addAttachment(File file)
public void addBCC(List addresses)
public void addCC(List addresses)
public void addReplyTo(String address)
public void addReplyTo(List addresses)
public void addTo(String address)
public void addTo(List addresses)
public List getAttachments()
public List getBcc()
public String getBody()
public List getCc()
public String getContentType()
public String getFrom()
public List getReplyTo()
public String getSubject()
public List getTo()
public boolean isAuthenticate()
public void setAttachments(List attachments)
public void setAuthenticate(boolean newMAuthenticate)
newMAuthenticate
- booleanpublic void setBcc(List bcc)
public void setBody(String body)
body
- Stringpublic void setCc(List cc)
public void setContentType(String contentType)
contentType
- mime type of message (e.g. text/plain or text/html)public void setFrom(String from)
from
- StringStringpublic void setReplyTo(List replyTo)
public void setSubject(String subject)
subject
- Stringpublic void setTo(String to)
public void setTo(List to)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |