Business Integration Solutions Documentation

How to: Simulate Mail Using Papercut

Use this task to test the outcome of a pipeline configured with a SMTP endpoint activity.

Papercut is a utility to test activities which use SMTP protocol. It is simple to use and saves time in configuring a traditional SMTP server.

To use Papercut tool you must:

  • Download and install Papercut.
  • Configure a pipeline with SMTP endpoint activity.

To simulate mail using papercut:

  1. Extract Papercut. Extract the downloaded archive to a folder location of your choice. You will see a Papercut executable in the extracted location. Double-click on the executable.
  2. Configure Papercut
  • Click on Options button.
  • Select the following IP Address: Any.
  • Specify the Port as 25 (default).
  1. Configure a pipeline. Edit the SMTP endpoint activity and specify SMTP Server as localhost and SMTP Server Port as 25.

The Papercut executable should be running while processing the pipeline in order to intercept the mail message.

When you process the pipeline, an entry with current date and time is displayed in the left pane of the Papercut utility. You can double click on the entry to view the content of the mail.

The attachments are available as base-64 encoded string.