public final class Email extends BaseInstance
| Modifier and Type | Class and Description |
|---|---|
static class |
Email.Importance
Represents all possible values for the importance.
|
static class |
Email.Priority
Represents all possible values for the priority.
|
| Constructor and Description |
|---|
Email()
Constructor.
|
Email(Email memo)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBcc(List bcc)
Adds list of names to the list of the blind copy recipients.
|
void |
addBcc(String bcc)
Adds a name to the list of the blind copy recipients.
|
void |
addCategories(Collection categories)
Adds a collection of categories.
|
void |
addCategories(String category)
Adds a single category.
|
void |
addCc(List sendTo) |
void |
addCc(String sendTo) |
void |
addHeader(String name,
String value)
Adds a new header attribute.
|
void |
addHeaders(Map map)
Adds all given attributes to the set of headers.
|
void |
addRecipient(String recipient) |
void |
clearHeaders()
Clears all other header information.
|
boolean |
containsHeader(Object name)
Checks if a header attribute exists.
|
Set |
getAllHeaderNames()
Returns the set of all header names.
|
List |
getBcc()
Returns the list of blind copy recipients.
|
String |
getBody()
Returns the body of the email as an unformatted string.
|
Set |
getCategories()
Returns an iterator over all categories.
|
List |
getCc() |
Calendar |
getDeliveredDate()
Get the Delivery Date/Time.
|
String |
getFrom() |
void |
getHeader(String name)
Returns the value of a given named header attribute.
|
Map |
getHeaders()
Returns the map of all header attribute.
|
Email.Importance |
getImportance()
Returns the importance.
|
String |
getPrincipal() |
Email.Priority |
getPriority()
Returns the priority.
|
List |
getRecipients() |
String |
getReplyTo() |
boolean |
getSaveOnSend()
Returns if the mail should be saved after send or not.
|
String |
getSubject() |
Set |
headerNames()
Returns a set of the names of all available header attributes..
|
void |
removeHeader(String name)
Removes a header attribute.
|
void |
setBcc(Collection bcc)
Sets the list of blind copy recipients to a list of names.
|
void |
setBcc(List bcc)
Sets the list of blind copy recipients to a list of names.
|
void |
setBcc(String bcc)
Sets the list of blind copy recipients to a single name.
|
void |
setBody(String body)
Sets the body of the email as an unformatted string.
|
void |
setCategories(Collection categories)
Sets the set of categories.
|
void |
setCategories(Set categories)
Sets the set of categories.
|
void |
setCc(Collection copyTo) |
void |
setCc(List copyTo) |
void |
setDeliveredDate(Calendar deliveredDate)
Set the Delivery Date/Time.
|
void |
setFrom(String from) |
void |
setImportance(Email.Importance importance)
Sets the importance.
|
void |
setPrincipal(String principal) |
void |
setPriority(Email.Priority priority)
Sets the priority.
|
void |
setRecipient(String recipients)
Sets the list of recipients to a single name.
|
void |
setRecipients(Collection recipients) |
void |
setRecipients(List recipients) |
void |
setReplyTo(String replyTo) |
void |
setSaveOnSend(boolean saveOnSend)
Sets if the mail should be saved after send or not.
|
void |
setSubject(String subject) |
getUnid, setUnidpublic Email()
public Email(Email memo)
memo - another memo for copying data from.public String getSubject()
public void setSubject(String subject)
subject - The subject to setpublic List getBcc()
public void setBcc(Collection bcc)
bcc - list of namespublic void setBcc(List bcc)
bcc - list of namespublic void setBcc(String bcc)
bcc - The sendTo to set.public void addBcc(String bcc)
bcc - The sendTo to set.public void addBcc(List bcc)
bcc - The sendTo to set.public List getRecipients()
public void setRecipients(Collection recipients)
recipients - The recipients to set.public void setRecipients(List recipients)
recipients - The recipients to set.public void setRecipient(String recipients)
recipients - The recipients to set.public void addRecipient(String recipient)
recipient - The recipient to set.public List getCc()
public void setCc(Collection copyTo)
copyTo - The copyTo to set.public void setCc(List copyTo)
copyTo - The copyTo to set.public void addCc(String sendTo)
sendTo - The sendTo to set.public void addCc(List sendTo)
sendTo - The sendTo to set.public String getFrom()
public void setFrom(String from)
from - The from to set.public String getPrincipal()
public void setPrincipal(String principal)
principal - The principal to set.public String getReplyTo()
public void setReplyTo(String replyTo)
replyTo - The replyTo to set.public String getBody()
public void setBody(String body)
body - unformatted bodypublic void addHeader(String name, String value)
name - the name of the attributevalue - the value of the attributepublic void removeHeader(String name)
name - the name of the attributepublic Set getAllHeaderNames()
public void getHeader(String name)
name - the name of the attributepublic Map getHeaders()
public void clearHeaders()
public boolean containsHeader(Object name)
name - name of the attribute to checktrue if the attribute exists, else
falsepublic Set headerNames()
public void addHeaders(Map map)
map - of attributes to addpublic void addCategories(Collection categories)
categories - the categories to addpublic void addCategories(String category)
category - the category to addpublic void setCategories(Set categories)
categories - the categories to setpublic void setCategories(Collection categories)
categories - the categories to setpublic Set getCategories()
public Email.Importance getImportance()
public void setImportance(Email.Importance importance)
importance - importancepublic Email.Priority getPriority()
public void setPriority(Email.Priority priority)
priority - prioritypublic Calendar getDeliveredDate()
public void setDeliveredDate(Calendar deliveredDate)
deliveredDate - date email was delivered.public boolean getSaveOnSend()
true if the mail should be saved after send, else falsepublic void setSaveOnSend(boolean saveOnSend)
The default value is true.
saveOnSend - true if the mail should be saved after send, else falseCopyright © 2005–2020. All rights reserved.