title: When should I use SecureSockOptions or useSsl when connecting using Mailkit
body: <p>I'm confused on how to use the third parameter when setting up smtp with MailKit.</p>
  
  <p>Here is what I have so far:</p>
  
  <pre><code>    // *************** SEND EMAIL *******************
      using (var client = new MailKit.Net.Smtp.SmtpClient(new ProtocolLogger("smtp.log")))
      {
        client.SslProtocols = System.Security.Authentication.SslProtocols.Tls12;
  
        //accept all SSL certificates
        client.ServerCertificateValidationCallback = (s, c, h, e) =&gt; true;
  
        // Note: since we don't have an OAuth2 token, disable
        // the XOAUTH2 authentication mechanism.
        client.AuthenticationMechanisms.Remove("XOAUTH2");
  
        // client.Connect(emailSettings.SmtpServer, emailSettings.SmtpPort, emailSettings.IsSslEnabled);
        client.Connect(emailSettings.SmtpServer, emailSettings.SmtpPort, emailSettings.AuthType);
  
        if (emailSettings.IsAuthenticationRequired)
        {
          // Note: only needed if the SMTP server requires authentication
          client.Authenticate(emailSettings.SmtpUsername, emailSettings.SmtpPassword);
        }
  
        if (emailSettings.TimeOut == 0) emailSettings.TimeOut = 10;
        client.Timeout = emailSettings.TimeOut * 1000;
  
        client.Send(message);
        client.Disconnect(true);
      }
  </code></pre>
  
  <p>My confusion is on this line:</p>
  
  <pre><code>client.Connect(emailSettings.SmtpServer, emailSettings.SmtpPort , true);
  </code></pre>
  
  <p>I have the option to pass in either true/false or SecureSockOptions.</p>
  
  <p>This is what I have on my form:</p>
  
  <p><a href="https://i.stack.imgur.com/PN7qy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PN7qy.png" alt="enter image description here"></a></p>
  
  <p>I'm not sure I understand how the two different settings affect the sending of emails.  I assume I use either the true/false for useSsl or the SecureSockOptions? I'm not sure how these work together. </p>
  
  <p>The options for SecureSockOptions are:</p>
  
  <blockquote>
    <p>None Auto SslOnConnect StartTls StartTlsWhenAvailable</p>
  </blockquote>
  
  <p>Do these options negate the need for useSsl?</p>