Wednesday, 14 October 2009

Email Notification ASP.NET - Setting pickup directory

Simply add the following to your web.config’s system.net section:


<mailSettings>
 <smtp deliveryMethod="SpecifiedPickupDirectory>
  <specifiedPickupDirectory pickupDirectoryLocation="c:\temp\"/>
 </smtp>
</mailSettings>



All mail sent will then been save as an eml file. Excellent stuff in a development environment.

No comments:

Post a Comment