title: NLog Mail Target is not working
body: <p>I'm using below configuration and expect my error logs go through email, but they don't </p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;targets&gt;
    &lt;target name="traceLogger" xsi:type="File" fileName="C:\Temp\trace.log" layout="${date:format=G} ${level} ${message}"/&gt;
    &lt;target name="warnLogger" xsi:type="File" fileName="C:\Temp\warning.log" layout="${date:format=G} ${message}"/&gt;
    &lt;target name="infoLogger" xsi:type="File" fileName="C:\Temp\info.log" layout="${date:format=G} ${message}"/&gt;
  
    &lt;target name="errorLogger" xsi:type="Mail"
          subject="QC Result Processing Error"
          to="name@domain.com"
          bcc=""
          cc=""
          from="sender@domain.com"
          smtpServer="smtpinfo"/&gt;
   &lt;/targets&gt;
  
   &lt;rules&gt;
      &lt;logger name="*" writeTo="traceLogger"&gt;&lt;/logger&gt;
      &lt;logger name="*" levels="Warn" writeTo="warnLogger"&gt;&lt;/logger&gt;
      &lt;logger name="*" levels="Info" writeTo="infoLogger"&gt;&lt;/logger&gt;
      &lt;logger name="*" levels="Error" writeTo="errorLogger"&gt;&lt;/logger&gt;
   &lt;/rules&gt;
  </code></pre>