title: Nlog : With mail target - SecurityProtocol
body: <p>I have issue Nlog with mail target.
  Appllication build in framwork 4.5.2.
  Nlog : 4.7.14
  Now Nlog configration is as below,</p>
  <pre><code>&lt;target name=&quot;mail&quot; xsi:type=&quot;Mail&quot; html=&quot;true&quot; smtpServer=&quot;smtp.office365.com&quot; smtpUserName=&quot;name@companyname.com&quot;
   smtpPassword=&quot;*****&quot; smtpPort=&quot;587&quot; enableSsl=&quot;true&quot; from=&quot;name@companyname.com&quot;
   to=&quot;name@companyname.com&quot; subject=&quot;Exception from Applicaion&quot; 
   useSystemNetMailSettings=&quot;False&quot; smtpAuthentication=&quot;Basic&quot; /&gt;
  
   &lt;logger name=&quot;*&quot; levels=&quot;Error&quot; writeTo=&quot;mail&quot; /&gt;
  </code></pre>
  <p>This is my code. I dont know how to add <strong>SecurityProtocol</strong> in nlog file?</p>
  <p>Nlog mailkit is supported in framwork 5.0 or heiher version.</p>
  <p>Please suggest.</p>