public class MailMessageData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CHARSET |
static java.lang.String |
CONTENT_TYPE_HTML |
static java.lang.String |
CONTENT_TYPE_TEXT |
Constructor and Description |
---|
MailMessageData() |
Modifier and Type | Method and Description |
---|---|
void |
addHeader(java.lang.String header,
java.lang.String value) |
void |
addRecipient(java.lang.String address) |
java.lang.String |
getBodyText() |
java.lang.String |
getCharset() |
java.lang.String |
getContentType() |
java.lang.String |
getFrom() |
java.lang.String |
getFromDisplayName() |
java.util.Map<java.lang.String,java.lang.String> |
getHeaders() |
javax.mail.Multipart |
getMultipartContent() |
java.util.List<java.lang.String> |
getRecipients() |
java.lang.String |
getSubject() |
boolean |
isAllowCustomBodyHeader() |
void |
setAllowCustomBodyHeaders(boolean allow) |
void |
setBodyText(java.lang.String contentType,
java.lang.String bodyText) |
void |
setFrom(java.lang.String from) |
void |
setFromDisplayName(java.lang.String fromDisplayName) |
void |
setMultiPartContent(javax.mail.Multipart multipartContent)
Add MultiPart to email.
|
void |
setSubject(java.lang.String subject) |
java.lang.String |
toString() |
public static final java.lang.String CHARSET
public static final java.lang.String CONTENT_TYPE_TEXT
public static final java.lang.String CONTENT_TYPE_HTML
public void addRecipient(java.lang.String address)
address
- comma separated list of email addressespublic java.util.List<java.lang.String> getRecipients()
public void setSubject(java.lang.String subject)
public java.lang.String getSubject()
public void setBodyText(java.lang.String contentType, java.lang.String bodyText)
public java.lang.String getBodyText()
public java.lang.String getContentType()
public void setFromDisplayName(java.lang.String fromDisplayName)
public java.lang.String getFromDisplayName()
public void setFrom(java.lang.String from)
public java.lang.String getFrom()
public void setAllowCustomBodyHeaders(boolean allow)
public boolean isAllowCustomBodyHeader()
public void setMultiPartContent(javax.mail.Multipart multipartContent)
multipartContent
- the multipart to add to the email.public javax.mail.Multipart getMultipartContent()
public void addHeader(java.lang.String header, java.lang.String value)
public java.util.Map<java.lang.String,java.lang.String> getHeaders()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getCharset()