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:
Note: Attempting to start Fake SMTP Server on a system where an SMTP server is already running will result in an error.
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.
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.