Package | Description |
---|---|
javax.mail | |
javax.mail.event | |
javax.mail.internet | |
javax.mail.search |
Modifier and Type | Field and Description |
---|---|
protected Address[] |
SendFailedException.invalid |
protected Address[] |
SendFailedException.validSent |
protected Address[] |
SendFailedException.validUnsent |
Modifier and Type | Method and Description |
---|---|
Address[] |
Message.getAllRecipients()
Get all recipients of this message.
|
abstract Address[] |
Message.getFrom()
Return the "From" header indicating the identity of the person who the message is from;
in some circumstances this may be different to the actual sender.
|
Address[] |
SendFailedException.getInvalidAddresses() |
abstract Address[] |
Message.getRecipients(Message.RecipientType type)
Get all recipients of the given type.
|
Address[] |
Message.getReplyTo()
Get the addresses to which replies should be directed.
|
Address[] |
SendFailedException.getValidSentAddresses() |
Address[] |
SendFailedException.getValidUnsentAddresses() |
Modifier and Type | Method and Description |
---|---|
abstract void |
Message.addFrom(Address[] addresses)
Add multiple addresses to the "From" header.
|
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.
|
Transport |
Session.getTransport(Address address)
Return a transport for the protocol associated with the type of this address.
|
protected void |
Transport.notifyTransportListeners(int type,
Address[] validSent,
Address[] validUnsent,
Address[] invalid,
Message message) |
protected void |
Transport.notifyTransportListeners(int type,
Address[] validSent,
Address[] validUnsent,
Address[] invalid,
Message message) |
protected void |
Transport.notifyTransportListeners(int type,
Address[] validSent,
Address[] validUnsent,
Address[] invalid,
Message message) |
static void |
Transport.send(Message message,
Address[] addresses)
Send a message to all addresses provided irrespective of any recipients contained in the message itself
using message transports appropriate for each address.
|
abstract void |
Transport.sendMessage(Message message,
Address[] addresses)
Send a message to the supplied addresses using this transport; if any of the addresses are
invalid then a
SendFailedException is thrown. |
abstract void |
Message.setFrom(Address address)
Set the "From" header to the supplied address.
|
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.
|
void |
Message.setReplyTo(Address[] addresses)
Set the addresses to which replies should be directed.
|
Constructor and Description |
---|
SendFailedException(String message,
Exception cause,
Address[] validSent,
Address[] validUnsent,
Address[] invalid) |
SendFailedException(String message,
Exception cause,
Address[] validSent,
Address[] validUnsent,
Address[] invalid) |
SendFailedException(String message,
Exception cause,
Address[] validSent,
Address[] validUnsent,
Address[] invalid) |
Modifier and Type | Field and Description |
---|---|
protected Address[] |
TransportEvent.invalid
Addresses that are invalid.
|
protected Address[] |
TransportEvent.validSent
Addresses to which the message was successfully delivered.
|
protected Address[] |
TransportEvent.validUnsent
Addresses which are valid but to which the message was not sent.
|
Modifier and Type | Method and Description |
---|---|
Address[] |
TransportEvent.getInvalidAddresses() |
Address[] |
TransportEvent.getValidSentAddresses() |
Address[] |
TransportEvent.getValidUnsentAddresses() |
Constructor and Description |
---|
TransportEvent(Transport transport,
int type,
Address[] validSent,
Address[] validUnsent,
Address[] invalid,
Message message)
Construct a new event,
|
TransportEvent(Transport transport,
int type,
Address[] validSent,
Address[] validUnsent,
Address[] invalid,
Message message)
Construct a new event,
|
TransportEvent(Transport transport,
int type,
Address[] validSent,
Address[] validUnsent,
Address[] invalid,
Message message)
Construct a new event,
|
Modifier and Type | Class and Description |
---|---|
class |
InternetAddress
A representation of an Internet email address as specified by RFC822 in
conjunction with a human-readable personal name that can be encoded as
specified by RFC2047.
|
class |
NewsAddress
A representation of an RFC1036 Internet newsgroup address.
|
Modifier and Type | Method and Description |
---|---|
Address[] |
MimeMessage.getAllRecipients()
Retrieve all of the recipients defined for this message.
|
Address[] |
MimeMessage.getFrom()
Get the message "From" addresses.
|
Address[] |
MimeMessage.getRecipients(Message.RecipientType type)
Gets the recipients by type.
|
Address[] |
MimeMessage.getReplyTo()
Get the ReplyTo address information.
|
Address |
MimeMessage.getSender()
Return the "Sender" header as an address.
|
Modifier and Type | Method and Description |
---|---|
void |
MimeMessage.addFrom(Address[] addresses)
Add a set of addresses to the existing From header.
|
void |
MimeMessage.addRecipients(Message.RecipientType type,
Address[] address)
Add a list of addresses to a target recipient list.
|
void |
MimeMessage.setFrom(Address address)
Set the current message "From" recipient.
|
void |
MimeMessage.setRecipients(Message.RecipientType type,
Address[] addresses)
Set a recipients list for a particular recipient type.
|
void |
MimeMessage.setReplyTo(Address[] address)
Set the Reply-To field to the provided list of addresses.
|
void |
MimeMessage.setSender(Address address)
Set the "Sender" header.
|
static String |
InternetAddress.toString(Address[] addresses)
Convert the supplied addresses into a single String of comma-separated text as
produced by
toString() . |
static String |
NewsAddress.toString(Address[] addresses)
Convert the supplied addresses to a comma-separated String.
|
static String |
InternetAddress.toString(Address[] addresses,
int used)
Convert the supplies addresses into a String of comma-separated text,
inserting line-breaks between addresses as needed to restrict the line
length to 72 characters.
|
Modifier and Type | Field and Description |
---|---|
protected Address |
AddressTerm.address
The address.
|
Modifier and Type | Method and Description |
---|---|
Address |
AddressTerm.getAddress()
Return the address of this term.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
AddressStringTerm.match(Address address)
Tests if the patterm associated with this Term is a substring of
the address in the supplied object.
|
protected boolean |
AddressTerm.match(Address address)
Match to the supplied address.
|
Constructor and Description |
---|
AddressTerm(Address address)
Constructor taking the address for this term.
|
FromTerm(Address match) |
RecipientTerm(Message.RecipientType type,
Address address) |
Copyright © 2013. All Rights Reserved.