Package totalcross.net.mail
Class SMTPSSLTransport
- java.lang.Object
-
- totalcross.net.mail.Service
-
- totalcross.net.mail.Transport
-
- totalcross.net.mail.SMTPTransport
-
- totalcross.net.mail.SMTPSSLTransport
-
public class SMTPSSLTransport extends SMTPTransport
This class implements the Transport abstract class using SMTP for message submission and transport over secure sockets.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSMTPSSLTransport(MailSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnect(Socket connection)protected voidstartTLS()Issue the STARTTLS command and switch the socket to TLS mode if it succeeds.-
Methods inherited from class totalcross.net.mail.SMTPTransport
close, connect, connect, ehlo, getRequireStartTLS, issueCommand, protocolConnect, readServerResponse, sendMessage, simpleCommand, simpleCommand, supportsExtension
-
-
-
-
Constructor Detail
-
SMTPSSLTransport
protected SMTPSSLTransport(MailSession session)
-
-
Method Detail
-
connect
public void connect(Socket connection) throws MessagingException
- Overrides:
connectin classSMTPTransport- Throws:
MessagingException
-
startTLS
protected void startTLS() throws MessagingExceptionDescription copied from class:SMTPTransportIssue the STARTTLS command and switch the socket to TLS mode if it succeeds.- Overrides:
startTLSin classSMTPTransport- Throws:
MessagingException
-
-