Debug config and Release config when sending emails...

Discussion in 'Email' started by Owen Ransen, Jun 1, 2014.

  1. This post (now closed) says I can test my email sending by changing my WEB config to include

    Code:
    <system.net>
      <mailSettings>
        <smtp deliveryMethod="SpecifiedPickupDirectory">  <specifiedPickupDirectory pickupDirectoryLocation="c:\Temp\" />
        </smtp>
      </mailSettings>
    </system.net> 
    ... which will send my emails to a local directory. I suppose this will override any C# I have to send email? And presumably I put it into the debug version of the web config?
     
  2. FrankC

    FrankC DiscountASP.NET Staff

    Don't use this deliveryMethod.

    Use PickupDirectoryFromIis instead.
     
    mjp and Owen Ransen like this.
  3. Thanks, I'll try it.
     

Share This Page