Uses of Class
javax.mail.Address
-
Packages that use Address 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. -
-
Uses of Address in com.sun.mail.imap
Methods in com.sun.mail.imap that return Address Modifier and Type Method 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.AddressIMAPMessage. getSender()Get the "Sender" attribute.Methods in com.sun.mail.imap with parameters of type Address Modifier and Type Method Description voidIMAPMessage. addFrom(Address[] addresses)voidIMAPMessage. addRecipients(Message.RecipientType type, Address[] addresses)voidIMAPMessage. setFrom(Address address)voidIMAPMessage. setRecipients(Message.RecipientType type, Address[] addresses)voidIMAPMessage. setReplyTo(Address[] addresses)voidIMAPMessage. setSender(Address address) -
Uses of Address in com.sun.mail.smtp
Methods in com.sun.mail.smtp with parameters of type Address Modifier and Type Method Description protected voidSMTPTransport. notifyTransportListeners(int type, Address[] validSent, Address[] validUnsent, Address[] invalid, Message msg)Notify all TransportListeners.voidSMTPTransport. sendMessage(Message message, Address[] addresses)Send the Message to the specified list of addresses.Constructors in com.sun.mail.smtp with parameters of type Address Constructor 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. -
Uses of Address in javax.mail
Fields in javax.mail declared as Address Modifier and Type Field Description protected Address[]SendFailedException. invalidprotected Address[]SendFailedException. validSentprotected Address[]SendFailedException. validUnsentMethods in javax.mail that return Address Modifier and Type Method 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.Methods in javax.mail with parameters of type Address Modifier and Type Method Description abstract voidMessage. addFrom(Address[] addresses)Add these addresses to the existing "From" attributevoidMessage. addRecipient(Message.RecipientType type, Address address)Add this recipient address to the existing ones of the given type.abstract voidMessage. addRecipients(Message.RecipientType type, Address[] addresses)Add these recipient addresses to the existing ones of the given type.TransportSession. getTransport(Address address)Get a Transport object that can transport a Message of the specified address type.protected voidTransport. notifyTransportListeners(int type, Address[] validSent, Address[] validUnsent, Address[] invalid, Message msg)Notify all TransportListeners.static voidTransport. send(Message msg, Address[] addresses)Send the message to the specified addresses, ignoring any recipients specified in the message itself.static voidTransport. 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 voidTransport. sendMessage(Message msg, Address[] addresses)Send the Message to the specified list of addresses.abstract voidMessage. setFrom(Address address)Set the "From" attribute in this Message.voidMessage. setRecipient(Message.RecipientType type, Address address)Set the recipient address.abstract voidMessage. setRecipients(Message.RecipientType type, Address[] addresses)Set the recipient addresses.voidMessage. setReplyTo(Address[] addresses)Set the addresses to which replies should be directed.Constructors in javax.mail with parameters of type Address Constructor Description SendFailedException(String msg, Exception ex, Address[] validSent, Address[] validUnsent, Address[] invalid)Constructs a SendFailedException with the specified string and the specified address objects. -
Uses of Address in javax.mail.event
Fields in javax.mail.event declared as Address Modifier and Type Field Description protected Address[]TransportEvent. invalidThe invalid addresses.protected Address[]TransportEvent. validSentThe valid address to which the message was sent.protected Address[]TransportEvent. validUnsentThe valid address to which the message was not sent.Methods in javax.mail.event that return Address Modifier and Type Method 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.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 classInternetAddressThis class represents an Internet email address using the syntax of RFC822.classNewsAddressThis class models an RFC1036 newsgroup address.Methods in javax.mail.internet that return Address Modifier and Type Method 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.AddressMimeMessage. 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 voidMimeMessage. addFrom(Address[] addresses)Add the specified addresses to the existing "From" field.voidMimeMessage. addRecipients(Message.RecipientType type, Address[] addresses)Add the given addresses to the specified recipient type.voidMimeMessage. setFrom(Address address)Set the RFC 822 "From" header field.voidMimeMessage. setRecipients(Message.RecipientType type, Address[] addresses)Set the specified recipient type to the given addresses.voidMimeMessage. setReplyTo(Address[] addresses)Set the RFC 822 "Reply-To" header field.voidMimeMessage. setSender(Address address)Set the RFC 822 "Sender" header field.static StringInternetAddress. toString(Address[] addresses)Convert the given array of InternetAddress objects into a comma separated sequence of address strings.static StringInternetAddress. toString(Address[] addresses, int used)Convert the given array of InternetAddress objects into a comma separated sequence of address strings.static StringNewsAddress. toString(Address[] addresses)Convert the given array of NewsAddress objects into a comma separated sequence of address strings.static StringInternetAddress. toUnicodeString(Address[] addresses)Convert the given array of InternetAddress objects into a comma separated sequence of address strings.static StringInternetAddress. toUnicodeString(Address[] addresses, int used)Convert the given array of InternetAddress objects 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 AddressAddressTerm. addressThe address.Methods in javax.mail.search that return Address Modifier and Type Method Description AddressAddressTerm. getAddress()Return the address to match with.Methods in javax.mail.search with parameters of type Address Modifier and Type Method Description protected booleanAddressStringTerm. match(Address a)Check whether the address pattern specified in the constructor is a substring of the string representation of the given Address object.protected booleanAddressTerm. match(Address a)Match against the argument Address.Constructors in javax.mail.search with parameters of type Address Constructor Description AddressTerm(Address address)FromTerm(Address address)ConstructorRecipientTerm(Message.RecipientType type, Address address)Constructor.
-