public static class SMTPTransport
extends java.lang.Object
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 #issueCommand
and #sendCommand
methods can be
used to send simple SMTP commands. Other methods such as the
#mailFrom
and #data
methods can be overridden to
insert 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(); }
ConnectionEvent
,
TransportEvent
,
Serialized Form