Menu

Fake_SMTP_Server

Allan Cunliffe Kirti Chennareddy

For thorough testing of the email functionality of the Checksum Checker application, an SMTP server is required.

Fake SMTP Server can be used to substitute for a functional an SMTP server in environment without one (such as a local Windows machine).

Prerequisites:

  • Checksum Checker source files.
  • ANT istalled
  • JRE or JDK installed.

Note: Attempting to start Fake SMTP Server on a system where an SMTP server is already running will result in an error.

Building Fake SMTP Server

To install the Fake SMTP Server from the command line:

1. Go to the location of the RollingChecker build.xml file in your dpr source directory. For example:

cd source/RollingChecker/

2. Enter :

ant make_test_jar

Result: The checkertestutils.jar file is created in the RollingChecker/dist/ folder.

Starting Fake SMTP Server

To start the Fake SMTP Server from the command line:

1. Go to RollingChecker/dist/

2. Enter:

java -jar checkertestutils.jar fake_smtp_server -localhost -<select_a_port_number>

Result: Fake SMTP Server will run, listening on the specified port number of localhost. All emails sent from Checksum Checker will be displayed in the terminal.

Note: The port number is arbitrary and must correspond to the port number listed in the Checksum Checker configuration settings.


Related

Wiki: Main_Page

Auth0 Logo