Daniel Little Coding Blog
Daniel Little Coding Blog

A blog about .net development and the web.

Daniel Little
Author

Daniel Little (lavinski) is a Brisbane based software developer.

Share


Our Newsletter


Like this blog? Get each new post as soon it's posted.

Tags


Twitter


Testing emails in .NET

Daniel LittleDaniel Little

Testing emails can sometimes be a bit challenging. smtp4dev is a small program that intercepts all received emails so you can quickly send and view emails from any application that uses it as the SMTP server.

For a .NET application just add this to the config file.

<mailSettings>
    <smtp>
        <network host="localhost"/>
    </smtp>
</mailSettings>

Now all emails that the application sends will appear for your viewing pleasure in the email list (pictured below).

Daniel Little
Author

Daniel Little

Daniel Little (lavinski) is a Brisbane based software developer.

Comments