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.
However, I really want to be able to send email using my SMTP server's pickup folder (as opposed to specifying the servername and port). Just using the plain old System.Net block in your web.config, you could do:
<system.net>
<mailSettings>
<smtp deliveryMethod="pickupDirectoryFromIis" from="[email protected]">
</smtp>
</mailSettings>
</system.net>
or something like that, and then you're done.
Is this possible in the Logging Application Block? I don't want to specify the server and port.
Thanks, Stack Overflow!