There are a few:
- SMTP Impostor (formerly Antix SMTP Server), NuGet package – looks very good
- Dumbster – fake SMTP server under Apache license
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