Capture emails during development using smtp4dev and UI Test with Selenium
-
.NET
You can use smtp4dev during development to prevent emails from going out to real customers. This tool also supports IMAP which you can use to query emails for automated testing.