| Package | Description | 
|---|---|
| com.sun.mail.imap | 
 
An IMAP protocol provider for the Jakarta Mail API
that provides access to an IMAP message store. 
 | 
| com.sun.mail.smtp | 
 An SMTP protocol provider for the Jakarta Mail API
that provides access to an SMTP server. 
 | 
| javax.mail | 
 
The Jakarta Mail API
provides classes that model a mail system. 
 | 
| javax.mail.event | 
 Listeners and events for the Jakarta Mail API. 
 | 
| javax.mail.internet | 
 
Classes specific to Internet mail systems. 
 | 
| javax.mail.search | 
 
Message search terms for the Jakarta Mail API. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Address[] | 
IMAPMessage.getFrom()
Get the "From" attribute. 
 | 
Address[] | 
IMAPMessage.getRecipients(Message.RecipientType type)
Get the desired Recipient type. 
 | 
Address[] | 
IMAPMessage.getReplyTo()
Get the ReplyTo addresses. 
 | 
Address | 
IMAPMessage.getSender()
Get the "Sender" attribute. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
IMAPMessage.addFrom(Address[] addresses)  | 
void | 
IMAPMessage.addRecipients(Message.RecipientType type,
             Address[] addresses)  | 
void | 
IMAPMessage.setFrom(Address address)  | 
void | 
IMAPMessage.setRecipients(Message.RecipientType type,
             Address[] addresses)  | 
void | 
IMAPMessage.setReplyTo(Address[] addresses)  | 
void | 
IMAPMessage.setSender(Address address)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
SMTPTransport.notifyTransportListeners(int type,
                        Address[] validSent,
                        Address[] validUnsent,
                        Address[] invalid,
                        Message msg)
Notify all TransportListeners. 
 | 
protected void | 
SMTPTransport.notifyTransportListeners(int type,
                        Address[] validSent,
                        Address[] validUnsent,
                        Address[] invalid,
                        Message msg)
Notify all TransportListeners. 
 | 
protected void | 
SMTPTransport.notifyTransportListeners(int type,
                        Address[] validSent,
                        Address[] validUnsent,
                        Address[] invalid,
                        Message msg)
Notify all TransportListeners. 
 | 
void | 
SMTPTransport.sendMessage(Message message,
           Address[] addresses)
Send the Message to the specified list of addresses. 
 | 
| Constructor and Description | 
|---|
SMTPSendFailedException(String cmd,
                       int rc,
                       String err,
                       Exception ex,
                       Address[] vs,
                       Address[] vus,
                       Address[] inv)
Constructs an SMTPSendFailedException with the specified 
 address, return code, and error string. 
 | 
SMTPSendFailedException(String cmd,
                       int rc,
                       String err,
                       Exception ex,
                       Address[] vs,
                       Address[] vus,
                       Address[] inv)
Constructs an SMTPSendFailedException with the specified 
 address, return code, and error string. 
 | 
SMTPSendFailedException(String cmd,
                       int rc,
                       String err,
                       Exception ex,
                       Address[] vs,
                       Address[] vus,
                       Address[] inv)
Constructs an SMTPSendFailedException with the specified 
 address, return code, and error string. 
 | 
| 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 the recipient addresses for the message. 
 | 
abstract Address[] | 
Message.getFrom()
Returns the "From" attribute. 
 | 
Address[] | 
SendFailedException.getInvalidAddresses()
Return the addresses to which this message could not be sent. 
 | 
abstract Address[] | 
Message.getRecipients(Message.RecipientType type)
Get all the recipient addresses of the given type. 
 | 
Address[] | 
Message.getReplyTo()
Get the addresses to which replies should be directed. 
 | 
Address[] | 
SendFailedException.getValidSentAddresses()
Return the addresses to which this message was sent succesfully. 
 | 
Address[] | 
SendFailedException.getValidUnsentAddresses()
Return the addresses that are valid but to which this message 
 was not sent. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
abstract void | 
Message.addFrom(Address[] addresses)
Add these addresses to the existing "From" attribute 
 | 
void | 
Message.addRecipient(Message.RecipientType type,
            Address address)
Add this recipient address to the existing ones of the given type. 
 | 
abstract void | 
Message.addRecipients(Message.RecipientType type,
             Address[] addresses)
Add these recipient addresses to the existing ones of the given type. 
 | 
Transport | 
Session.getTransport(Address address)
Get a Transport object that can transport a Message of the
 specified address type. 
 | 
protected void | 
Transport.notifyTransportListeners(int type,
                        Address[] validSent,
                        Address[] validUnsent,
                        Address[] invalid,
                        Message msg)
Notify all TransportListeners. 
 | 
protected void | 
Transport.notifyTransportListeners(int type,
                        Address[] validSent,
                        Address[] validUnsent,
                        Address[] invalid,
                        Message msg)
Notify all TransportListeners. 
 | 
protected void | 
Transport.notifyTransportListeners(int type,
                        Address[] validSent,
                        Address[] validUnsent,
                        Address[] invalid,
                        Message msg)
Notify all TransportListeners. 
 | 
static void | 
Transport.send(Message msg,
    Address[] addresses)
Send the message to the specified addresses, ignoring any
 recipients specified in the message itself. 
 | 
static void | 
Transport.send(Message msg,
    Address[] addresses,
    String user,
    String password)
Send the message to the specified addresses, ignoring any
 recipients specified in the message itself. 
 | 
abstract void | 
Transport.sendMessage(Message msg,
           Address[] addresses)
Send the Message to the specified list of addresses. 
 | 
abstract void | 
Message.setFrom(Address address)
Set the "From" attribute in this Message. 
 | 
void | 
Message.setRecipient(Message.RecipientType type,
            Address address)
Set the recipient address. 
 | 
abstract void | 
Message.setRecipients(Message.RecipientType type,
             Address[] addresses)
Set the recipient addresses. 
 | 
void | 
Message.setReplyTo(Address[] addresses)
Set the addresses to which replies should be directed. 
 | 
| Constructor and Description | 
|---|
SendFailedException(String msg,
                   Exception ex,
                   Address[] validSent,
                   Address[] validUnsent,
                   Address[] invalid)
Constructs a SendFailedException with the specified string
 and the specified address objects. 
 | 
SendFailedException(String msg,
                   Exception ex,
                   Address[] validSent,
                   Address[] validUnsent,
                   Address[] invalid)
Constructs a SendFailedException with the specified string
 and the specified address objects. 
 | 
SendFailedException(String msg,
                   Exception ex,
                   Address[] validSent,
                   Address[] validUnsent,
                   Address[] invalid)
Constructs a SendFailedException with the specified string
 and the specified address objects. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
protected Address[] | 
TransportEvent.invalid
The invalid addresses. 
 | 
protected Address[] | 
TransportEvent.validSent
The valid address to which the message was sent. 
 | 
protected Address[] | 
TransportEvent.validUnsent
The valid address to which the message was not sent. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Address[] | 
TransportEvent.getInvalidAddresses()
Return the addresses to which this message could not be sent. 
 | 
Address[] | 
TransportEvent.getValidSentAddresses()
Return the addresses to which this message was sent succesfully. 
 | 
Address[] | 
TransportEvent.getValidUnsentAddresses()
Return the addresses that are valid but to which this message 
 was not sent. 
 | 
| Constructor and Description | 
|---|
TransportEvent(Transport transport,
              int type,
              Address[] validSent,
              Address[] validUnsent,
              Address[] invalid,
              Message msg)
Constructor. 
 | 
TransportEvent(Transport transport,
              int type,
              Address[] validSent,
              Address[] validUnsent,
              Address[] invalid,
              Message msg)
Constructor. 
 | 
TransportEvent(Transport transport,
              int type,
              Address[] validSent,
              Address[] validUnsent,
              Address[] invalid,
              Message msg)
Constructor. 
 | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
InternetAddress
This class represents an Internet email address using the syntax
 of RFC822. 
 | 
class  | 
NewsAddress
This class models an RFC1036 newsgroup address. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Address[] | 
MimeMessage.getAllRecipients()
Get all the recipient addresses for the message. 
 | 
Address[] | 
MimeMessage.getFrom()
Returns the value of the RFC 822 "From" header fields. 
 | 
Address[] | 
MimeMessage.getRecipients(Message.RecipientType type)
Returns the recepients specified by the type. 
 | 
Address[] | 
MimeMessage.getReplyTo()
Return the value of the RFC 822 "Reply-To" header field. 
 | 
Address | 
MimeMessage.getSender()
Returns the value of the RFC 822 "Sender" header field. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
MimeMessage.addFrom(Address[] addresses)
Add the specified addresses to the existing "From" field. 
 | 
void | 
MimeMessage.addRecipients(Message.RecipientType type,
             Address[] addresses)
Add the given addresses to the specified recipient type. 
 | 
void | 
MimeMessage.setFrom(Address address)
Set the RFC 822 "From" header field. 
 | 
void | 
MimeMessage.setRecipients(Message.RecipientType type,
             Address[] addresses)
Set the specified recipient type to the given addresses. 
 | 
void | 
MimeMessage.setReplyTo(Address[] addresses)
Set the RFC 822 "Reply-To" header field. 
 | 
void | 
MimeMessage.setSender(Address address)
Set the RFC 822 "Sender" header field. 
 | 
static String | 
NewsAddress.toString(Address[] addresses)
Convert the given array of NewsAddress objects into
 a comma separated sequence of address strings. 
 | 
static String | 
InternetAddress.toString(Address[] addresses)
Convert the given array of InternetAddress objects into
 a comma separated sequence of address strings. 
 | 
static String | 
InternetAddress.toString(Address[] addresses,
        int used)
Convert the given array of InternetAddress objects into
 a comma separated sequence of address strings. 
 | 
static String | 
InternetAddress.toUnicodeString(Address[] addresses)
Convert the given array of InternetAddress objects into
 a comma separated sequence of address strings. 
 | 
static String | 
InternetAddress.toUnicodeString(Address[] addresses,
               int used)
Convert the given array of InternetAddress objects into
 a comma separated sequence of address strings. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
protected Address | 
AddressTerm.address
The address. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Address | 
AddressTerm.getAddress()
Return the address to match with. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected boolean | 
AddressTerm.match(Address a)
Match against the argument Address. 
 | 
protected boolean | 
AddressStringTerm.match(Address a)
Check whether the address pattern specified in the constructor is
 a substring of the string representation of the given Address
 object. 
 | 
| Constructor and Description | 
|---|
AddressTerm(Address address)  | 
FromTerm(Address address)
Constructor 
 | 
RecipientTerm(Message.RecipientType type,
             Address address)
Constructor. 
 | 
Copyright © 2019 Eclipse Foundation. Use is subject to license terms.