| Package | Description |
|---|---|
| javax.mail | |
| javax.mail.internet | |
| javax.mail.search |
| Modifier and Type | Field and Description |
|---|---|
static Message.RecipientType |
Message.RecipientType.BCC
A "Bcc" or blind carbon-copy recipient.
|
static Message.RecipientType |
Message.RecipientType.CC
A "Cc" or carbon-copy recipient.
|
static Message.RecipientType |
Message.RecipientType.TO
A "To" or primary recipient.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Message.addRecipient(Message.RecipientType type,
Address address)
Add a recipent of a specified type.
|
abstract void |
Message.addRecipients(Message.RecipientType type,
Address[] addresses)
Add recipents of a specified type.
|
abstract Address[] |
Message.getRecipients(Message.RecipientType type)
Get all recipients of the given type.
|
void |
Message.setRecipient(Message.RecipientType type,
Address address)
Set the list of recipients for the specified type to a single address.
|
abstract void |
Message.setRecipients(Message.RecipientType type,
Address[] addresses)
Set the list of recipients for the specified type.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
MimeMessage.RecipientType
Extends
Message.RecipientType to support addition recipient types. |
| Modifier and Type | Method and Description |
|---|---|
void |
MimeMessage.addRecipients(Message.RecipientType type,
Address[] address)
Add a list of addresses to a target recipient list.
|
void |
MimeMessage.addRecipients(Message.RecipientType type,
String address)
Add an address to a target recipient list by string name.
|
Address[] |
MimeMessage.getRecipients(Message.RecipientType type)
Gets the recipients by type.
|
void |
MimeMessage.setRecipients(Message.RecipientType type,
Address[] addresses)
Set a recipients list for a particular recipient type.
|
void |
MimeMessage.setRecipients(Message.RecipientType type,
String address)
Set a recipient field to a string address (which may be a
list or group type).
|
| Modifier and Type | Field and Description |
|---|---|
protected Message.RecipientType |
RecipientTerm.type |
| Modifier and Type | Method and Description |
|---|---|
Message.RecipientType |
RecipientStringTerm.getRecipientType() |
Message.RecipientType |
RecipientTerm.getRecipientType() |
| Constructor and Description |
|---|
RecipientStringTerm(Message.RecipientType type,
String pattern) |
RecipientTerm(Message.RecipientType type,
Address address) |
Copyright © 2013. All Rights Reserved.