Class Overview
Encapsulation of a mail message.
Permits setting of subject, body text (or multipart content), the content type,
the sender, the sender's display name, recipients and SMTP headers.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Constants
public
static
final
String
CONTENT_TYPE_HTML
Constant Value:
"text/html; charset=UTF-8"
public
static
final
String
CONTENT_TYPE_TEXT
Constant Value:
"text/plain; charset=UTF-8"
Public Constructors
public
MailMessageData
()
Public Methods
public
void
addRecipient
(String address)
Parameters
address
| comma separated list of email addresses
|
public
String
getContentType
()
public
String
getFromDisplayName
()
public
Multipart
getMultipartContent
()
public
boolean
isAllowCustomBodyHeader
()
public
void
setAllowCustomBodyHeaders
(boolean allow)
public
void
setBodyText
(String contentType, String bodyText)
public
void
setFrom
(String from)
public
void
setFromDisplayName
(String fromDisplayName)
public
void
setMultiPartContent
(Multipart multipartContent)
Add MultiPart to email. If Multipart is set, then do not call setContent()
as it will not be used. Please add your content to the MultiPart.
Parameters
multipartContent
| the multipart to add to the email.
|
public
void
setSubject
(String subject)