development smtp server for windows

Tolga picture Tolga · Aug 30, 2009 · Viewed 18.9k times · Source

I am looking for a free test smptp server which can save emails in to files for my development tests. Since my development environment is windows I prefer test email server to run on windows but I can consider to install any other linux based alternatives.

Answer

marc_s picture marc_s · Aug 30, 2009

There are a few:

Or you can also set it up in your web.config to just store the e-mails in the file system (the config way of what "silky" has proposed in code):

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

Marc