Uses of Class
jakarta.mail.Address
Packages that use Address
Package
Description
The Jakarta Mail API
provides classes that model a mail system.
Listeners and events for the Jakarta Mail API.
Classes specific to Internet mail systems.
Message search terms for the Jakarta Mail API.
An IMAP protocol provider for the Jakarta Mail API
that provides access to an IMAP message store.
An SMTP protocol provider for the Jakarta Mail API
that provides access to an SMTP server.
-
Uses of Address in jakarta.mail
Fields in jakarta.mail declared as AddressModifier and TypeFieldDescriptionprotected Address[]
SendFailedException.invalid
The invalid addresses.protected Address[]
SendFailedException.validSent
Valid addresses to which message was sent.protected Address[]
SendFailedException.validUnsent
Valid addresses to which message was not sent.Methods in jakarta.mail that return AddressModifier and TypeMethodDescriptionAddress[]
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.Methods in jakarta.mail with parameters of type AddressModifier and TypeMethodDescriptionabstract void
Add these addresses to the existing "From" attributevoid
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.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.static void
Send the message to the specified addresses, ignoring any recipients specified in the message itself.static void
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
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.Constructors in jakarta.mail with parameters of type Address -
Uses of Address in jakarta.mail.event
Fields in jakarta.mail.event declared as AddressModifier and TypeFieldDescriptionprotected 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.Methods in jakarta.mail.event that return AddressModifier and TypeMethodDescriptionAddress[]
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.Constructors in jakarta.mail.event with parameters of type Address -
Uses of Address in jakarta.mail.internet
Subclasses of Address in jakarta.mail.internetModifier and TypeClassDescriptionclass
This class represents an Internet email address using the syntax of RFC822.class
This class models an RFC1036 newsgroup address.Methods in jakarta.mail.internet that return AddressModifier and TypeMethodDescriptionAddress[]
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.MimeMessage.getSender()
Returns the value of the RFC 822 "Sender" header field.Methods in jakarta.mail.internet with parameters of type AddressModifier and TypeMethodDescriptionvoid
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
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
Set the RFC 822 "Sender" header field.static String
Convert the given array of InternetAddress objects into a comma separated sequence of address strings.static String
Convert the given array of InternetAddress objects into a comma separated sequence of address strings.static String
Convert the given array of NewsAddress 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. -
Uses of Address in jakarta.mail.search
Fields in jakarta.mail.search declared as AddressMethods in jakarta.mail.search that return AddressMethods in jakarta.mail.search with parameters of type AddressModifier and TypeMethodDescriptionprotected boolean
Check whether the address pattern specified in the constructor is a substring of the string representation of the given Address object.protected boolean
Match against the argument Address.Constructors in jakarta.mail.search with parameters of type AddressModifierConstructorDescriptionprotected
AddressTerm
(Address address) Constructor.ConstructorRecipientTerm
(Message.RecipientType type, Address address) Constructor. -
Uses of Address in org.eclipse.angus.mail.imap
Methods in org.eclipse.angus.mail.imap that return AddressModifier and TypeMethodDescriptionAddress[]
IMAPMessage.getFrom()
Get the "From" attribute.Address[]
IMAPMessage.getRecipients
(Message.RecipientType type) Get the desired Recipient type.Address[]
IMAPMessage.getReplyTo()
Get the ReplyTo addresses.IMAPMessage.getSender()
Get the "Sender" attribute.Methods in org.eclipse.angus.mail.imap with parameters of type AddressModifier and TypeMethodDescriptionvoid
void
IMAPMessage.addRecipients
(Message.RecipientType type, Address[] addresses) void
void
IMAPMessage.setRecipients
(Message.RecipientType type, Address[] addresses) void
IMAPMessage.setReplyTo
(Address[] addresses) void
-
Uses of Address in org.eclipse.angus.mail.smtp
Methods in org.eclipse.angus.mail.smtp with parameters of type AddressModifier and TypeMethodDescriptionprotected 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.Constructors in org.eclipse.angus.mail.smtp with parameters of type Address