IIS Pickup directory and Logging

Topics: Logging Application Block
Jul 13, 2011 at 8:25 AM

Hi guys,

Does anyone know how to set up Enterprise Library Logging Block to send emails using IIS pickup directory?

Jul 13, 2011 at 10:42 AM

Can you try adding the code below and see if it works? 

      <mailSettings>
         <smtp deliveryMethod="PickupDirectoryFromIis" 
           <network 
                defaultCredentials="true"
                host="localhost" 
                port="25"
          </network>
        </smtp>
     </mailSettings>


Noel Angelo Bolasoc
Global Technologies and Solutions
Avanade, Inc.
entlib.support@avanade.com
Jul 14, 2011 at 10:13 AM

Thank you, i tried this code, it works.

  <system.net>
    <mailSettings>
      <smtp deliveryMethod="SpecifiedPickupDirectory">
        <specifiedPickupDirectory pickupDirectoryLocation="c:\aaa\" />
      </smtp>
    </mailSettings>
  </system.net>