title: Sending email with the MS Enterprise Library Logging Application Block via smtppickupfolder?
body: <p>I like the MS Enterprise Library Logging Application Block because it lets me easily define a few logging settings and then log an error in a line or so of code from my application.</p>
  
  <p>However, <strong>I really want to be able to send email using my SMTP server's pickup folder</strong> (as opposed to specifying the servername and port). Just using the plain old System.Net block in your web.config, you could do:</p>
  
  <pre><code>&lt;system.net&gt;
      &lt;mailSettings&gt;
          &lt;smtp deliveryMethod="pickupDirectoryFromIis" from="testuser@domail.com"&gt;
          &lt;/smtp&gt;
      &lt;/mailSettings&gt;
  &lt;/system.net&gt;
  </code></pre>
  
  <p>or something like that, and then you're done.</p>
  
  <p>Is this possible in the Logging Application Block? I don't want to specify the server and port.</p>
  
  <p>Thanks, Stack Overflow!</p>