LumiSoft Net Help
StartTLS Method (certCallback)
Namespaces ► LumiSoft.Net.SMTP.Client ► SMTP_Client ► StartTLS(RemoteCertificateValidationCallback)
Sends STARTTLS command to SMTP server.
Declaration Syntax

C# | Visual Basic | Visual C++ | F#

    public void StartTLS(
    	RemoteCertificateValidationCallback certCallback
    )

    Public Sub StartTLS (
    	certCallback As RemoteCertificateValidationCallback
    )

    public:
    void StartTLS(
    	RemoteCertificateValidationCallback^ certCallback
    )

    member StartTLS :
            certCallback : RemoteCertificateValidationCallback -> unit

Parameters

certCallback (RemoteCertificateValidationCallback)
  SSL server certificate validation callback. Value null means any certificate is accepted.

Remarks
After successful STARTTLS all SMTP session data(EHLO,MAIL FROM, ....) will be reset. If unknwon(not SMTP error) error happens during STARTTLS negotiation, SMTP client should disconnect.
Exceptions

Exception | Condition
--- | ---
ObjectDisposedException | Is raised when this object is disposed and this method is accessed.
InvalidOperationException | Is raised when SMTP client is not connected or is already secure connection.
SMTP_ClientException | Is raised when SMTP server returns error.

Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119