2.0.0 Ready to start TLS
is sent in reply to a STARTTLS
command. If you are getting disconnected immediately afterwards, then the TLS handshake is likely failing, and you should be getting an exception explaining why it failed. Double-check your TLS settings. Also keep in mind that setting the UseTLS
property may change the Port
property, so it is best to set UseTLS
before setting Port
rather than the other way around.
Also, You do not need to set the IOHandler's Host
, Port
, or Destination
properties. Connect()
will handle that for you.