See the com.sun.mail.smtp package documentation for further information on the SMTP protocol provider.
This class includes many protected methods that allow a subclass to extend this class and add support for non-standard SMTP commands. The {@link #issueCommand} and {@link #sendCommand} methods can beused to send simple SMTP commands. Other methods such as the {@link #mailFrom} and {@link #data} methods can be overridden toinsert new commands before or after the corresponding SMTP commands. For example, a subclass could do this to send the XACT command before sending the DATA command:
protected OutputStream data() throws MessagingException { if (supportsExtension("XACCOUNTING")) issueCommand("XACT", 25); return super.data(); }@author Max Spivak @author Bill Shannon @author Dean Gibson (DIGEST-MD5 authentication) @see javax.mail.event.ConnectionEvent @see javax.mail.event.TransportEvent
|
|
|
|