Wednesday, August 26, 2009

Send email to a folder instead of SMTP server when testing

While testing, you can have emails sent to a folder on your computer instead of an SMTP server. Put this in your web.config:

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



http://stackoverflow.com/questions/54929/hidden-features-of-asp-net

No comments: