gabrewer.com

Life is too important to be take seriously.

Cool Development Utility - smtp4dev

Monday, February 27, 2012 at 3:37 AM UTC

The other day I needed to test the Mail functionality of an application I was developing on Windows 7 and I realized that the built in SMTP server had been removed.  I initially thought about just installing the free version of SmarterMail and configuring that but I decided to take a look and see what else I could find.  I ran across smtp4dev on CodePlex.  Codeplex Link

smtp4dev captures emails that are sent to localhost on whatever port you configure smtp4dev to listen on.  You can then inspect the formatting and content by choosing an entry in the list and selecting Inspect or View.

smtp4dev main screen

Inspect shows a window that lets you see the MIME parts (Source, Headers, Body) and the raw Message Source. View opens the email message in your default email program.

Message Inspect Window

smtp4dev even supports SSL/TTL allowing you to specify a certificate to use for the secure connection.

smtp4dev options

smtp4dev is an easy to use utility that provides some powerful capabilities that can make integration testing email functionality in your apps easier.