Example usage for Java org.apache.commons.net.smtp SMTPSClient fields, constructors, methods, implement or subclass
The text is from its open source code.
SMTPSClient(boolean implicit) Constructor for SMTPSClient, using #DEFAULT_PROTOCOL i.e. | |
SMTPSClient(String proto) Constructor for SMTPSClient, using explicit security mode. | |
SMTPSClient(SSLContext context) Constructor for SMTPSClient. | |
SMTPSClient() Constructor for SMTPSClient, using #DEFAULT_PROTOCOL i.e. | |
SMTPSClient(String proto, boolean implicit) Constructor for SMTPSClient. | |
SMTPSClient(boolean implicit, SSLContext ctx) Constructor for SMTPSClient, using #DEFAULT_PROTOCOL i.e. |
void | addProtocolCommandListener(ProtocolCommandListener listener) Adds a ProtocolCommandListener. |
boolean | addRecipient(RelayPath path) Add a recipient for a message using the SMTP RCPT command, specifying a forward relay path. |
boolean | completePendingCommand() At least one SMTPClient method ( #sendMessageData sendMessageData ) does not complete the entire sequence of SMTP commands to complete a transaction. |
void | connect(InetAddress host, int port) Opens a Socket connected to a remote host at the specified port and originating from the current host at a system assigned port. |
void | connect(InetAddress host) Opens a Socket connected to a remote host at the current default port and originating from the current host at a system assigned port. |
void | disconnect() Closes the connection to the SMTP server and sets to null some internal data so that the memory may be reclaimed by the garbage collector. |
boolean | execTLS() The TLS command execution. |
int | getReplyCode() Returns the integer value of the reply code of the last SMTP reply. |
String | getReplyString() Returns the entire text of the last SMTP server response exactly as it was received, including all end of line markers in NETASCII format. |
String[] | getReplyStrings() Returns the lines of text from the last SMTP server response as an array of strings, one entry per line. |
int | helo(String hostname) A convenience method to send the SMTP HELO command to the server, receive the reply, and return the reply code. |
boolean | isConnected() Returns true if the client is currently connected to a server. |
boolean | login() Login to the SMTP server by sending the HELO command with the client hostname as an argument. |
boolean | logout() Logout of the SMTP server by sending the QUIT command. |
int | sendCommand(String command) Sends an SMTP command with no arguments to the server, waits for a reply and returns the numerical response code. |
Writer | sendMessageData() Send the SMTP DATA command in preparation to send an email message. |
void | setDefaultTimeout(int timeout) Set the default timeout in milliseconds to use when opening a socket. |
boolean | setSender(RelayPath path) Set the sender of a message using the SMTP MAIL command, specifying a reverse relay path. |
void | setTrustManager(TrustManager newTrustManager) Override the default TrustManager to use. |