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 EMAILWRITER endpoint activity.
To simulate mail using papercut:
- 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.
- Configure Papercut
- Click on Options button.
- Select the following IP Address: Any.
- Specify the Port as 25 (default).
- Configure a pipeline. Edit the EMAILWRITER endpoint activity and add Account ID 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 can be viewed under the mime sections: See mime sections