Skip to main content

Cloud

Utility for Testing Mail Sending

Every now and then I find exactly what I’m looking for.

The last couple of engagements that I’ve been involved in have had non-production SharePoint environments that do not allow SMTP relay out of that environment. So to test email notifications (e.g. alerts, messages sent by workflows, etc.), I either had to have a complete mail setup within the environment to verify receipt of email messages — or simply perform limited testing. Neither of these is a great solution.

And then I finally stumbled onto this:

http://www.dotnetcode.co.uk/dummysmtp.aspx

This command-line utility (source included) listens on the default SMTP port 25, accepts incoming connections, and writes the resulting message out to a file.

Here’s what it looks like running on the console:

Console application

And here’s the output:

Email message file

(If you squint very hard, it looks exactly like Outlook.)

Many thanks to the author for writing this utility and for making it freely available.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Matthew Morse

More from this Author

Follow Us