You are here: Home / Documentation / How To's / How to use a fake SMTP / email server

How to use a fake SMTP / email server

by nguyen — published Aug 16, 2016 10:50 AM, last modified Aug 16, 2016 10:50 AM
Avoid sending out emails from your Plone site when you are testing

I have set up a "fake" SMTP server at the following address: (, port 8028

It accepts normal SMTP connections but instead of delivering the email messages, it writes them to a directory on the file system, which you can view at the following URL:

You must log in with the following credentials:



For each email message it accepts, the fake SMTP server writes to a file named the following way:


where the integers are incremented, starting at 1 every time the fake SMTP server is restarted.

This means that if I connect to this SMTP server and try to send an email to Nathan at, the following file will be created:

Each message file contains all headers.

The SMTP server is accessible only from developer IP addresses (range  Similarly, the URL above that shows you the captured email messages is accessible only from the same developer IP address range.  I just tested this from an off campus server and it was unable to connect to either.

You can use an online base64 decoder if Plone encodes the message body that way.  For example,


decodes to:

This link is sent to you from http://localhost:8080/TestFakeSMTP

You are receiving this mail because someone read a page at
Test fake SMTP Site
and thought it might interest you.

It is sent by with the following comment:
"mini brain"

Welcome to Plone

Congratulations! You have successfully installed Plone.


Site Administrator