Uses of Class
javax.mail.Address
-
Packages that use Address Package Description gnu.mail.providers.nntp This is a provider for the Network News Transfer Protocol (NNTP), as detailed in RFC 977.gnu.mail.providers.smtp A provider for the Simple Mail Transfer Protocol (SMTP), as detailed in RFC 2821, including support for ESMTP service extensions.javax.mail Classes modelling a mail system.javax.mail.event Event objects and listener interfaces for JavaMail.javax.mail.internet Classes modelling Internet mail systems.javax.mail.search Search expressions for executing searches on the messages in a folder. -
-
Uses of Address in gnu.mail.providers.nntp
Methods in gnu.mail.providers.nntp with parameters of type Address Modifier and Type Method Description void
NNTPTransport. sendMessage(Message message, Address[] addresses)
Post an article. -
Uses of Address in gnu.mail.providers.smtp
Methods in gnu.mail.providers.smtp with parameters of type Address Modifier and Type Method Description void
SMTPTransport. sendMessage(Message message, Address[] addresses)
Send the specified message to the server. -
Uses of Address in javax.mail
Fields in javax.mail declared as Address Modifier and Type Field Description protected Address[]
SendFailedException. invalid
protected Address[]
SendFailedException. validSent
protected Address[]
SendFailedException. validUnsent
Methods in javax.mail that return Address Modifier and Type Method Description Address[]
Message. getAllRecipients()
Returns all the recipient addresses in the message.abstract Address[]
Message. getFrom()
Returns the identity of the person(s) who ordered the sending of this message.Address[]
SendFailedException. getInvalidAddresses()
Returns the addresses to which this message could not be sent.abstract Address[]
Message. getRecipients(Message.RecipientType type)
Returns all the recipient addresses of the specified type.Address[]
Message. getReplyTo()
Returns the addresses to which replies should be directed.Address[]
SendFailedException. getValidSentAddresses()
Returns the addresses to which this message was sent succesfully.Address[]
SendFailedException. getValidUnsentAddresses()
Returns the addresses that are valid but to which this message was not sent.Methods in javax.mail with parameters of type Address Modifier and Type Method Description abstract void
Message. addFrom(Address[] addresses)
Adds addresses to the identity of the person sending this message.void
Message. addRecipient(Message.RecipientType type, Address address)
Adds the recipient address of the given type.abstract void
Message. addRecipients(Message.RecipientType type, Address[] addresses)
Adds the recipient addresses of the given type.Transport
Session. getTransport(Address address)
Get a Transport object that can transport a Message to the specified address type.protected void
Transport. notifyTransportListeners(int type, Address[] validSent, Address[] validUnsent, Address[] invalid, Message msg)
Notifies all transport listeners.static void
Transport. send(Message msg, Address[] addresses)
Sends the message to the specified addresses, ignoring any recipients specified in the message itself.abstract void
Transport. sendMessage(Message msg, Address[] addresses)
Sends the message to the specified list of addresses.abstract void
Message. setFrom(Address address)
Sets the identity of the person sending this message.void
Message. setRecipient(Message.RecipientType type, Address address)
Sets the recipient address of the specified type.abstract void
Message. setRecipients(Message.RecipientType type, Address[] addresses)
Sets the recipient addresses of the specified type.void
Message. setReplyTo(Address[] addresses)
Sets the addresses to which replies should be directed.Constructors in javax.mail with parameters of type Address Constructor Description SendFailedException(java.lang.String message, java.lang.Exception exception, Address[] validSent, Address[] validUnsent, Address[] invalid)
Creates a send failed exception with the specified string and addresses. -
Uses of Address in javax.mail.event
Fields in javax.mail.event declared as Address Modifier and Type Field Description protected Address[]
TransportEvent. invalid
protected Address[]
TransportEvent. validSent
protected Address[]
TransportEvent. validUnsent
Methods in javax.mail.event that return Address Modifier and Type Method Description Address[]
TransportEvent. getInvalidAddresses()
Returns the addresses to which this message could not be sent.Address[]
TransportEvent. getValidSentAddresses()
Returns the addresses to which this message was delivered succesfully.Address[]
TransportEvent. getValidUnsentAddresses()
Returns the addresses that are valid but to which this message was not delivered.Constructors in javax.mail.event with parameters of type Address Constructor Description TransportEvent(Transport transport, int type, Address[] validSent, Address[] validUnsent, Address[] invalid, Message msg)
Constructor. -
Uses of Address in javax.mail.internet
Subclasses of Address in javax.mail.internet Modifier and Type Class Description class
InternetAddress
An RFC 822 address.class
NewsAddress
An RFC 1036 newsgroup address.Methods in javax.mail.internet that return Address Modifier and Type Method Description Address[]
MimeMessage. getAllRecipients()
Returns all the recipients.Address[]
MimeMessage. getFrom()
Returns the value of the RFC 822 From header field.Address[]
MimeMessage. getRecipients(Message.RecipientType type)
Returns the recipients of the given type.Address[]
MimeMessage. getReplyTo()
Returns the value of the RFC 822 Reply-To header field.Address
MimeMessage. getSender()
Returns the value of the RFC 822 Sender header field.Methods in javax.mail.internet with parameters of type Address Modifier and Type Method Description void
MimeMessage. addFrom(Address[] addresses)
Adds the specified addresses to From header field.void
MimeMessage. addRecipients(Message.RecipientType type, Address[] addresses)
Adds the given addresses to the recipients of the specified type.void
MimeMessage. setFrom(Address address)
Sets the RFC 822 From header field.void
MimeMessage. setRecipients(Message.RecipientType type, Address[] addresses)
Sets the recipients of the given type.void
MimeMessage. setReplyTo(Address[] addresses)
Sets the RFC 822 Reply-To header field.void
MimeMessage. setSender(Address address)
Sets the RFC 822 Sender header field.static java.lang.String
InternetAddress. toString(Address[] addresses)
Converts the given array of InternetAddresses into a comma-separated sequence of address strings.static java.lang.String
InternetAddress. toString(Address[] addresses, int used)
Converts the given array of InternetAddresses into a comma-separated sequence of address strings.static java.lang.String
NewsAddress. toString(Address[] addresses)
Converts the given array of NewsAddresses into a comma-separated sequence of address strings. -
Uses of Address in javax.mail.search
Fields in javax.mail.search declared as Address Modifier and Type Field Description protected Address
AddressTerm. address
The address.Methods in javax.mail.search that return Address Modifier and Type Method Description Address
AddressTerm. getAddress()
Returns the address to match.Methods in javax.mail.search with parameters of type Address Modifier and Type Method Description protected boolean
AddressStringTerm. match(Address a)
Indicates whether the address pattern specified in the constructor is a substring of the string representation of the given address.protected boolean
AddressTerm. match(Address address)
Returns true if the specified address matches the address specified in this term.Constructors in javax.mail.search with parameters of type Address Constructor Description AddressTerm(Address address)
FromTerm(Address address)
Constructor.RecipientTerm(Message.RecipientType type, Address address)
Constructor.
-