Example usage for Java org.apache.commons.net.smtp AuthSMTPClient fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | auth(String smtpUser, String smtpPass) |
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 | 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. |
void | enableSSL(final boolean verify) |
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. |
boolean | isConnected() Returns true if the client is currently connected to a server. |
boolean | login() |
void | setConnectTimeout(int connectTimeout) Sets the connection timeout in milliseconds, which will be passed to the Socket object's connect() method. |
boolean | startTLS(final String hostname, final int port, final boolean verify) |