Java org.apache.commons.net.smtp AuthenticatingSMTPClient fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.net.smtp AuthenticatingSMTPClient fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.net.smtp AuthenticatingSMTPClient.

The text is from its open source code.

Subclass

org.apache.commons.net.smtp.AuthenticatingSMTPClient has subclasses.
Click this link to see all its subclasses.

Constructor

AuthenticatingSMTPClient()
The default AuthenticatingSMTPClient constructor.

Method

voidaddProtocolCommandListener(ProtocolCommandListener listener)
Adds a ProtocolCommandListener.
booleanaddRecipient(RelayPath path)
Add a recipient for a message using the SMTP RCPT command, specifying a forward relay path.
booleanauth(AuthenticatingSMTPClient.AUTH_METHOD method, String username, String password)
Authenticate to the SMTP server by sending the AUTH command with the selected mechanism, using the given username and the given password.
booleancompletePendingCommand()
At least one SMTPClient method ( #sendMessageData sendMessageData ) does not complete the entire sequence of SMTP commands to complete a transaction.
voidconnect(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.
voiddisconnect()
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.
booleanexecTLS()
The TLS command execution.
InetAddressgetLocalAddress()
Returns the local address to which the client's socket is bound.
intgetReplyCode()
Returns the integer value of the reply code of the last SMTP reply.
inthelo(String hostname)
A convenience method to send the SMTP HELO command to the server, receive the reply, and return the reply code.
booleanisConnected()
Returns true if the client is currently connected to a server.
booleanlogin(String hostname)
Login to the SMTP server by sending the HELO command with the given hostname as an argument.
booleanlogout()
Logout of the SMTP server by sending the QUIT command.
booleanreset()
Aborts the current mail transaction, resetting all server stored sender, recipient, and mail data, cleaing all buffers and tables.
WritersendMessageData()
Send the SMTP DATA command in preparation to send an email message.
voidsetCharset(Charset charset)
Sets the charset.
voidsetDefaultTimeout(int timeout)
Set the default timeout in milliseconds to use when opening a socket.
booleansetSender(RelayPath path)
Set the sender of a message using the SMTP MAIL command, specifying a reverse relay path.