/** * The TLS command execution. * * @return TRUE if the command and negotiation succeeded. * @throws java.io.IOException If an I/O error occurs while sending the command or performing the * negotiation. */ public boolean execTLS() throws SSLException, IOException { if (!SMTPReply.isPositiveCompletion(sendCommand("STARTTLS"))) { return false; // throw new SSLException(getReplyString()); } performSSLNegotiation(); return true; }