@NotExtensible @ThreadSafety(level=INTERFACE_NOT_THREADSAFE) public interface EMailMessage
Modifier and Type | Method and Description |
---|---|
java.util.List<EMailAttachment> |
getAttachments()
Retrieves the list of attachments for this email message.
|
java.util.Set<java.lang.String> |
getBCCAddresses()
Retrieves the set of "bcc" recipients for this email message.
|
java.util.Set<java.lang.String> |
getCCAddresses()
Retrieves the set of "cc" recipients for this email message.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getCustomHeaders()
Retrieves a map of the custom headers that should be included in the
email message.
|
java.lang.String |
getHTMLPart()
Retrieves the HTML-formatted part for this email message, if defined.
|
java.lang.String |
getPlainTextPart()
Retrieves the plain-text part for this email message, if defined.
|
java.lang.String |
getReplyToAddress()
Retrieves the reply-to address for this email message, if defined.
|
java.lang.String |
getSenderAddress()
Retrieves the sender address for this email message.
|
java.lang.String |
getSubject()
Retrieves the subject for this email message.
|
java.util.Set<java.lang.String> |
getToAddresses()
Retrieves the set of "to" recipients for this email message.
|
void |
send()
Attempts to send this message using the server's default SMTP connection
pool.
|
java.lang.String |
toString()
Retrieves a string representation for this email message.
|
java.lang.String getSenderAddress()
java.lang.String getReplyToAddress()
null
if
none is defined.java.util.Set<java.lang.String> getToAddresses()
java.util.Set<java.lang.String> getCCAddresses()
java.util.Set<java.lang.String> getBCCAddresses()
java.lang.String getSubject()
java.lang.String getPlainTextPart()
null
if
none is defined.java.lang.String getHTMLPart()
null
if
none is defined.java.util.Map<java.lang.String,java.util.List<java.lang.String>> getCustomHeaders()
java.util.List<EMailAttachment> getAttachments()
void send() throws javax.mail.MessagingException
javax.mail.MessagingException
- If a problem is encountered while trying to
send the message.java.lang.String toString()
toString
in class java.lang.Object