Setup Local SMTP Server


We all have been in situations where our application is sending out mails and we want to test the output. This seems simple but in my case SMTP server was in a different network and our corporate firewall restrictions were making it complicated and time consuming. I thought of finding a simpler solution and after some googling stumbled upon PaperCut 

Its a simple receive only SMTP server which is super easy to setup and once started captures all outgoing emails from your system which are send via localhost SMTP server and shows them in a nice UI. It allows you to inspect everything about your email from its body to header to mime types.

Setting up PaperCut


  1. Setup your code to send mail after ovveriding the following SMTP details
    • SMTP Server : localhost
    • SMTP Port : 25
    • EnableSSL : False
  2. Download PaperCut and start the exe
  3. Send email and wait for a few seconds, it should appear in the PaperCut window and you can inspect all the details you like about your email messageFig.1

It does give you options to target a particular IP address and Port if you so desire. I haven’t tried it though.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s