Monday, 21 February 2011

Check Out smtp4dev if You Build Mail-Enabled Software on Windows

One of my cow-orkers pointed me at a great little utility a while back called smtp4dev. It’s an SMTP server that listens on your local machine, and instead of relaying e-mail, it’ll capture them and store them in a queue so you can review and open them.


It’s brilliant – simple and elegant and incredibly easy to use. Just configure your application (website, debugger, logging framework – whatever it is you’re building) to send mail on localhost:25, fire up smtp4dev, and watch the messages pile up. I’ve been building SMTP appenders for log4net this evening, and it’s been really, really useful.

Binaries and source are at – well worth a look if you ever write software that sends e-mail.


Anonymous said...

Yes, this is an awesomely usefull tool. I too was introduced to it last month my my colleague.

Matt Honeycutt said...

smpt4dev is indeed a handy tool. I've got it configured to start automatically when I launch my ASP.NET site through Visual Studio when testing locally: