Dan Gilleland posted on May 18, 2009 05:17
Here’s a good article/resource on testing e-mailing apps in an environment that doesn’t have SMTP. Basically, you add info in the configuration file for dropping the e-mails in a local area, like this:
<system.net>
<mailSettings>
<smtp deliveryMethod="Network">
<network host="mail.mydomain.com" port="25" />
</smtp>
<!-- Use this setting for development
<smtp deliveryMethod="SpecifiedPickupDirectory">
<specifiedPickupDirectory pickupDirectoryLocation="C:\Temp" />
</smtp>-->
</mailSettings>
</system.net>
There’s more to look at
here and
here (for leveraging Vista's IIS7 & building "realistic" SMTP forwarding) as well.