A B C D E F G H I M N P R S W X
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addr - Variable in exception com.sun.mail.smtp.SMTPAddressFailedException
- addr - Variable in exception com.sun.mail.smtp.SMTPAddressSucceededException
- addr - Variable in exception com.sun.mail.smtp.SMTPSenderFailedException
- addr - Variable in exception com.sun.mail.smtp.SMTPSendFailedException
- authClient(String, String, String, String, String) - Method in class com.sun.mail.smtp.DigestMD5
-
Return client's authentication response to server's challenge.
- authenticate(String[], String, String, String, String) - Method in interface com.sun.mail.smtp.SaslAuthenticator
- authenticate(String[], String, String, String, String) - Method in class com.sun.mail.smtp.SMTPSaslAuthenticator
- authServer(String) - Method in class com.sun.mail.smtp.DigestMD5
-
Allow the client to authenticate the server based on its response.
B
- bdat() - Method in class com.sun.mail.smtp.SMTPTransport
-
Return a stream that will use the SMTP BDAT command to send data.
C
- checkConnected() - Method in class com.sun.mail.smtp.SMTPTransport
-
Check if we're in the connected state.
- close() - Method in class com.sun.mail.smtp.SMTPTransport
-
Close the Transport and terminate the connection to the server.
- cmd - Variable in exception com.sun.mail.smtp.SMTPAddressFailedException
- cmd - Variable in exception com.sun.mail.smtp.SMTPAddressSucceededException
- cmd - Variable in exception com.sun.mail.smtp.SMTPSenderFailedException
- cmd - Variable in exception com.sun.mail.smtp.SMTPSendFailedException
- com.sun.mail.smtp - module com.sun.mail.smtp
- com.sun.mail.smtp - package com.sun.mail.smtp
-
An SMTP protocol provider for the Jakarta Mail API that provides access to an SMTP server.
- connect(Socket) - Method in class com.sun.mail.smtp.SMTPTransport
-
Start the SMTP protocol on the given socket, which was already connected by the caller.
D
- data() - Method in class com.sun.mail.smtp.SMTPTransport
-
Send the
DATAcommand to the SMTP host and return an OutputStream to which the data is to be written. - DigestMD5 - Class in com.sun.mail.smtp
-
DIGEST-MD5 authentication support.
- DigestMD5(MailLogger) - Constructor for class com.sun.mail.smtp.DigestMD5
E
- ehlo(String) - Method in class com.sun.mail.smtp.SMTPTransport
-
Issue the
EHLOcommand. - ensureAtBOL() - Method in class com.sun.mail.smtp.SMTPOutputStream
-
Ensure we're at the beginning of a line.
F
- finalize() - Method in class com.sun.mail.smtp.SMTPTransport
- finishBdat() - Method in class com.sun.mail.smtp.SMTPTransport
-
Terminate the sent data.
- finishData() - Method in class com.sun.mail.smtp.SMTPTransport
-
Terminate the sent data.
- flush() - Method in class com.sun.mail.smtp.SMTPOutputStream
-
Override flush method in FilterOutputStream.
G
- getAddress() - Method in exception com.sun.mail.smtp.SMTPAddressFailedException
-
Return the address that failed.
- getAddress() - Method in exception com.sun.mail.smtp.SMTPAddressSucceededException
-
Return the address that succeeded.
- getAddress() - Method in exception com.sun.mail.smtp.SMTPSenderFailedException
-
Return the address that failed.
- getAllow8bitMIME() - Method in class com.sun.mail.smtp.SMTPMessage
-
Is use of the 8BITMIME extension is allowed?
- getAuthorizationId() - Method in class com.sun.mail.smtp.SMTPTransport
-
Gets the authorization ID to be used for authentication.
- getCommand() - Method in exception com.sun.mail.smtp.SMTPAddressFailedException
-
Return the command that failed.
- getCommand() - Method in exception com.sun.mail.smtp.SMTPAddressSucceededException
-
Return the command that succeeded.
- getCommand() - Method in exception com.sun.mail.smtp.SMTPSenderFailedException
-
Return the command that failed.
- getCommand() - Method in exception com.sun.mail.smtp.SMTPSendFailedException
-
Return the command that failed.
- getEnvelopeFrom() - Method in class com.sun.mail.smtp.SMTPMessage
-
Return the envelope From address.
- getExtensionParameter(String) - Method in class com.sun.mail.smtp.SMTPTransport
-
Return the parameter the server provided for the specified service extension, or null if the extension isn't supported.
- getLastReturnCode() - Method in class com.sun.mail.smtp.SMTPTransport
-
Return the return code from the last response we got from the server.
- getLastServerResponse() - Method in class com.sun.mail.smtp.SMTPTransport
-
Return the last response we got from the server.
- getLocalHost() - Method in class com.sun.mail.smtp.SMTPTransport
-
Get the name of the local host, for use in the EHLO and HELO commands.
- getMailExtension() - Method in class com.sun.mail.smtp.SMTPMessage
-
Gets the extension string to use with the MAIL command.
- getNoopStrict() - Method in class com.sun.mail.smtp.SMTPTransport
-
Is the NOOP command required to return a response code of 250 to indicate success?
- getNotifyOptions() - Method in class com.sun.mail.smtp.SMTPMessage
-
Get notification options.
- getNTLMDomain() - Method in class com.sun.mail.smtp.SMTPTransport
-
Gets the NTLM domain to be used for NTLM authentication.
- getReportSuccess() - Method in class com.sun.mail.smtp.SMTPTransport
-
Should we report even successful sends by throwing an exception? If so, a
SendFailedExceptionwill always be thrown and anSMTPAddressSucceededExceptionwill be included in the exception chain for each successful address, along with the usualSMTPAddressFailedExceptionfor each unsuccessful address. - getRequireStartTLS() - Method in class com.sun.mail.smtp.SMTPTransport
-
Should we require the STARTTLS command to secure the connection?
- getReturnCode() - Method in exception com.sun.mail.smtp.SMTPAddressFailedException
-
Return the return code from the SMTP server that indicates the reason for the failure.
- getReturnCode() - Method in exception com.sun.mail.smtp.SMTPAddressSucceededException
-
Return the return code from the SMTP server that indicates the reason for the success.
- getReturnCode() - Method in exception com.sun.mail.smtp.SMTPSenderFailedException
-
Return the return code from the SMTP server that indicates the reason for the failure.
- getReturnCode() - Method in exception com.sun.mail.smtp.SMTPSendFailedException
-
Return the return code from the SMTP server that indicates the reason for the failure.
- getReturnOption() - Method in class com.sun.mail.smtp.SMTPMessage
-
Return return option.
- getSASLEnabled() - Method in class com.sun.mail.smtp.SMTPTransport
-
Is SASL authentication enabled?
- getSASLMechanisms() - Method in class com.sun.mail.smtp.SMTPTransport
-
Get the list of SASL mechanisms to consider if SASL authentication is enabled.
- getSASLRealm() - Method in class com.sun.mail.smtp.SMTPTransport
-
Gets the SASL realm to be used for DIGEST-MD5 authentication.
- getSendPartial() - Method in class com.sun.mail.smtp.SMTPMessage
-
Send message if some addresses are invalid?
- getStartTLS() - Method in class com.sun.mail.smtp.SMTPTransport
-
Should we use the STARTTLS command to secure the connection if the server supports it?
- getSubmitter() - Method in class com.sun.mail.smtp.SMTPMessage
-
Gets the submitter to be used for the RFC 2554 AUTH= value in the MAIL FROM command.
- getUseCanonicalHostName() - Method in class com.sun.mail.smtp.SMTPTransport
-
Should SASL use the canonical host name?
- getUseRset() - Method in class com.sun.mail.smtp.SMTPTransport
-
Should we use the RSET command instead of the NOOP command in the @{link #isConnected isConnected} method?
H
- helo(String) - Method in class com.sun.mail.smtp.SMTPTransport
-
Issue the
HELOcommand.
I
- isConnected() - Method in class com.sun.mail.smtp.SMTPTransport
-
Check whether the transport is connected.
- isSSL() - Method in class com.sun.mail.smtp.SMTPTransport
-
Is this Transport using SSL to connect to the server?
- issueCommand(String, int) - Method in class com.sun.mail.smtp.SMTPTransport
-
Send the command to the server.
M
- mailFrom() - Method in class com.sun.mail.smtp.SMTPTransport
-
Issue the
MAIL FROM:command to start sending a message.
N
- NOTIFY_DELAY - Static variable in class com.sun.mail.smtp.SMTPMessage
-
Notify of delivery delay
- NOTIFY_FAILURE - Static variable in class com.sun.mail.smtp.SMTPMessage
-
Notify of delivery failure
- NOTIFY_NEVER - Static variable in class com.sun.mail.smtp.SMTPMessage
-
Never notify of delivery status
- NOTIFY_SUCCESS - Static variable in class com.sun.mail.smtp.SMTPMessage
-
Notify of delivery success
- notifyTransportListeners(int, Address[], Address[], Address[], Message) - Method in class com.sun.mail.smtp.SMTPTransport
-
Notify all TransportListeners.
P
- protocolConnect(String, int, String, String) - Method in class com.sun.mail.smtp.SMTPTransport
-
Performs the actual protocol-specific connection attempt.
R
- rc - Variable in exception com.sun.mail.smtp.SMTPAddressFailedException
- rc - Variable in exception com.sun.mail.smtp.SMTPAddressSucceededException
- rc - Variable in exception com.sun.mail.smtp.SMTPSenderFailedException
- rc - Variable in exception com.sun.mail.smtp.SMTPSendFailedException
- rcptTo() - Method in class com.sun.mail.smtp.SMTPTransport
-
Sends each address to the SMTP host using the
RCPT TO:command and copies the address either into the validSentAddr or invalidAddr arrays. - readServerResponse() - Method in class com.sun.mail.smtp.SMTPTransport
-
Reads server reponse returning the
returnCodeas the number. - RETURN_FULL - Static variable in class com.sun.mail.smtp.SMTPMessage
-
Return full message with delivery status notification
- RETURN_HDRS - Static variable in class com.sun.mail.smtp.SMTPMessage
-
Return only message headers with delivery status notification
S
- SaslAuthenticator - Interface in com.sun.mail.smtp
-
Interface to make it easier to call SMTPSaslAuthenticator.
- sendCommand(String) - Method in class com.sun.mail.smtp.SMTPTransport
-
Sends command
cmdto the server terminating it withCRLF. - sendMessage(Message, Address[]) - Method in class com.sun.mail.smtp.SMTPTransport
-
Send the Message to the specified list of addresses.
- setAllow8bitMIME(boolean) - Method in class com.sun.mail.smtp.SMTPMessage
-
If set to true, and the server supports the 8BITMIME extension, text parts of this message that use the "quoted-printable" or "base64" encodings are converted to use "8bit" encoding if they follow the RFC 2045 rules for 8bit text.
- setAuthorizationID(String) - Method in class com.sun.mail.smtp.SMTPTransport
-
Sets the authorization ID to be used for authentication.
- setEnvelopeFrom(String) - Method in class com.sun.mail.smtp.SMTPMessage
-
Set the From address to appear in the SMTP envelope.
- setLocalHost(String) - Method in class com.sun.mail.smtp.SMTPTransport
-
Set the name of the local host, for use in the EHLO and HELO commands.
- setMailExtension(String) - Method in class com.sun.mail.smtp.SMTPMessage
-
Set the extension string to use with the MAIL command.
- setNoopStrict(boolean) - Method in class com.sun.mail.smtp.SMTPTransport
-
Set whether the NOOP command is required to return a response code of 250 to indicate success.
- setNotifyOptions(int) - Method in class com.sun.mail.smtp.SMTPMessage
-
Set notification options to be used if the server supports Delivery Status Notification (RFC 1891).
- setNTLMDomain(String) - Method in class com.sun.mail.smtp.SMTPTransport
-
Sets the NTLM domain to be used for NTLM authentication.
- setReportSuccess(boolean) - Method in class com.sun.mail.smtp.SMTPTransport
-
Set whether successful sends should be reported by throwing an exception.
- setRequireStartTLS(boolean) - Method in class com.sun.mail.smtp.SMTPTransport
-
Set whether the STARTTLS command should be required.
- setReturnOption(int) - Method in class com.sun.mail.smtp.SMTPMessage
-
Set return option to be used if server supports Delivery Status Notification (RFC 1891).
- setSASLEnabled(boolean) - Method in class com.sun.mail.smtp.SMTPTransport
-
Set whether SASL authentication is enabled.
- setSASLMechanisms(String[]) - Method in class com.sun.mail.smtp.SMTPTransport
-
Set the list of SASL mechanisms to consider if SASL authentication is enabled.
- setSASLRealm(String) - Method in class com.sun.mail.smtp.SMTPTransport
-
Sets the SASL realm to be used for DIGEST-MD5 authentication.
- setSendPartial(boolean) - Method in class com.sun.mail.smtp.SMTPMessage
-
If set to true, and this message has some valid and some invalid addresses, send the message anyway, reporting the partial failure with a SendFailedException.
- setStartTLS(boolean) - Method in class com.sun.mail.smtp.SMTPTransport
-
Set whether the STARTTLS command should be used.
- setSubmitter(String) - Method in class com.sun.mail.smtp.SMTPMessage
-
Sets the submitter to be used for the RFC 2554 AUTH= value in the MAIL FROM command.
- setUseCanonicalHostName(boolean) - Method in class com.sun.mail.smtp.SMTPTransport
-
Set whether SASL should use the canonical host name.
- setUseRset(boolean) - Method in class com.sun.mail.smtp.SMTPTransport
-
Set whether the RSET command should be used instead of the NOOP command in the @{link #isConnected isConnected} method.
- simpleCommand(byte[]) - Method in class com.sun.mail.smtp.SMTPTransport
-
Send the command to the server and return the response code from the server.
- simpleCommand(String) - Method in class com.sun.mail.smtp.SMTPTransport
-
Send the command to the server and return the response code from the server.
- SMTPAddressFailedException - Exception in com.sun.mail.smtp
-
This exception is thrown when the message cannot be sent.
- SMTPAddressFailedException(InternetAddress, String, int, String) - Constructor for exception com.sun.mail.smtp.SMTPAddressFailedException
-
Constructs an SMTPAddressFailedException with the specified address, return code, and error string.
- SMTPAddressSucceededException - Exception in com.sun.mail.smtp
-
This exception is chained off a SendFailedException when the
mail.smtp.reportsuccessproperty is true. - SMTPAddressSucceededException(InternetAddress, String, int, String) - Constructor for exception com.sun.mail.smtp.SMTPAddressSucceededException
-
Constructs an SMTPAddressSucceededException with the specified address, return code, and error string.
- SMTPMessage - Class in com.sun.mail.smtp
-
This class is a specialization of the MimeMessage class that allows you to specify various SMTP options and parameters that will be used when this message is sent over SMTP.
- SMTPMessage(MimeMessage) - Constructor for class com.sun.mail.smtp.SMTPMessage
-
Constructs a new SMTPMessage with content initialized from the
sourceMimeMessage. - SMTPMessage(Session) - Constructor for class com.sun.mail.smtp.SMTPMessage
-
Default constructor.
- SMTPMessage(Session, InputStream) - Constructor for class com.sun.mail.smtp.SMTPMessage
-
Constructs an SMTPMessage by reading and parsing the data from the specified MIME InputStream.
- SMTPOutputStream - Class in com.sun.mail.smtp
-
In addition to converting lines into the canonical format, i.e., terminating lines with the CRLF sequence, escapes the "." by adding another "." to any "." that appears in the beginning of a line.
- SMTPOutputStream(OutputStream) - Constructor for class com.sun.mail.smtp.SMTPOutputStream
- SMTPProvider - Class in com.sun.mail.smtp
-
The SMTP protocol provider.
- SMTPProvider() - Constructor for class com.sun.mail.smtp.SMTPProvider
- SMTPSaslAuthenticator - Class in com.sun.mail.smtp
-
This class contains a single method that does authentication using SASL.
- SMTPSaslAuthenticator(SMTPTransport, String, Properties, MailLogger, String) - Constructor for class com.sun.mail.smtp.SMTPSaslAuthenticator
- SMTPSenderFailedException - Exception in com.sun.mail.smtp
-
This exception is thrown when the message cannot be sent.
- SMTPSenderFailedException(InternetAddress, String, int, String) - Constructor for exception com.sun.mail.smtp.SMTPSenderFailedException
-
Constructs an SMTPSenderFailedException with the specified address, return code, and error string.
- SMTPSendFailedException - Exception in com.sun.mail.smtp
-
This exception is thrown when the message cannot be sent.
- SMTPSendFailedException(String, int, String, Exception, Address[], Address[], Address[]) - Constructor for exception com.sun.mail.smtp.SMTPSendFailedException
-
Constructs an SMTPSendFailedException with the specified address, return code, and error string.
- SMTPSSLProvider - Class in com.sun.mail.smtp
-
The SMTP SSL protocol provider.
- SMTPSSLProvider() - Constructor for class com.sun.mail.smtp.SMTPSSLProvider
- SMTPSSLTransport - Class in com.sun.mail.smtp
-
This class implements the Transport abstract class using SMTP over SSL for message submission and transport.
- SMTPSSLTransport(Session, URLName) - Constructor for class com.sun.mail.smtp.SMTPSSLTransport
-
Constructor.
- SMTPTransport - Class in com.sun.mail.smtp
-
This class implements the Transport abstract class using SMTP for message submission and transport.
- SMTPTransport(Session, URLName) - Constructor for class com.sun.mail.smtp.SMTPTransport
-
Constructor that takes a Session object and a URLName that represents a specific SMTP server.
- SMTPTransport(Session, URLName, String, boolean) - Constructor for class com.sun.mail.smtp.SMTPTransport
-
Constructor used by this class and by SMTPSSLTransport subclass.
- startTLS() - Method in class com.sun.mail.smtp.SMTPTransport
-
Issue the
STARTTLScommand and switch the socket to TLS mode if it succeeds. - supportsAuthentication(String) - Method in class com.sun.mail.smtp.SMTPTransport
-
Does the server we're connected to support the specified authentication mechanism? Uses the extension information returned by the server from the EHLO command.
- supportsExtension(String) - Method in class com.sun.mail.smtp.SMTPTransport
-
Return true if the SMTP server supports the specified service extension.
W
- write(byte[], int, int) - Method in class com.sun.mail.smtp.SMTPOutputStream
- write(int) - Method in class com.sun.mail.smtp.SMTPOutputStream
X
- xtext(String) - Static method in class com.sun.mail.smtp.SMTPTransport
-
Convert a string to RFC 1891 xtext format.
- xtext(String, boolean) - Static method in class com.sun.mail.smtp.SMTPTransport
-
Like xtext(s), but allow UTF-8 strings.
All Classes All Packages