Bookmark and Share

Let us print and mail all your post!

Docmail API

Docmail physical mail API v2.0

Welcome to the new and improved Docmail physical mail API!

As ever, Docmail's secure API (Application Programming Interface) allows you to send A4 letters, Postcards, Greeting Cards and Business Cards (corporate only) from a click of a button within your own computer systems.

Docmail creates a Hybrid of electronic and physical mail by transmitting an electronic document and mailing list to us, where we print and mail it as real post!

The Docmail API allows you to add a Hybrid Mail service right into your own systems and workflows.


Basics of the Docmail API

The API is a SOAP-based webservice allowing the creation, proofing and confirmation of orders for mailings, single letters, postcards and greeting cards. Documents (PDF, RTF or Word files) are submitted as files or selected by name from your account. Address lists may be selected by name, submitted as a file (CSV, XLS, XLSX, Tab delimited, fixed length fields etc.) or added as individual addresses using the AddAddress call.

A PDF proof approval is available, but is no longer a required step in the process.

Payment is made via Top-Up credit on the customer Account, or for large volume users, payment on invoice may be available (subject to status, volume and regularity of orders).

Examples in the API documentation are based around Microsoft Visual Basic .Net © code and the Microsoft Visual Studio 2008 © development environment.

Code Examples

Here you'll find sample codes and projects to get you started with docmail's physical mail API.

Microsoft Visual Basic .Net



Java (NetBeans)

Perl – Simple API:

Our Docmail Express page is written using the Simple API and Perl. Docmail Express offers a simplified interface for submitting Docmail orders & illustrates how the API could be used to integrate Docmail into another website.

More Code Samples & Examples to help get you started in other languages and coding environments will follow.

Docmail Test Environment

Docmail provides a seperate testing environment for use with the API. It provides the same API, and web functionality as the live system, with a website mirroring the live version. We do not produce any print or mail output from the test environment and any credit has no cash value. Credit in the test system can be topped up from the Account Admin section of the test website without charge.

The test environment uses seperate databases, so your live login details don't apply. Likewise, your test login credentials are not available for use in the live environment.

Feel free to browse & access the test website and test with the API, remembering that to send any live mailings, you'll need to switch your credentials to your live account and the webservice URL over to the live address, shown below.

Docmail Webservice Definitions

Webservice definitions for the API are available at these URL’s:

Docmail API: Key Features & Improvements (since version 1)

More accessible

More power (via newly exposed features)

More control

Faster, Simpler calls


Version 1 of the API is still available and still supported, though it is no longer under active development. For more details on the previous version please use the link on the right-hand panel.

Mailing Product information
(Send Letters, Postcards and Greeting Cards)

The Docmail API supports envelope size selection via the MinEnvelopeSize property, along with access to the Postcard, Greeting Card and Business Card (corporate only) products via the DocumentType parameter (e.g. on the AddTemplateFile calls).

This means you can now send custom letters, postcards, greeting cards and business cards (*) directly via our API!

(*) business cards available on corporate accounts only

PDF Document Streams (see Webservice Help Guide for more details) are still supported via the TemplateType parameter (e.g. on the AddTemplateFile calls).

Envelope Selection. Use parameter [MinEnvelopeSize]

Stream of Documents in PDF . Use parameter [TemplateType]

Mailing products available via the API. Use parameter [DocumentType]

Useful Links

Docmail Home
Docmail Signup
Docmail Login
Docmail API Forum
Docmail Blog
Docmail Listing on ProgrammableWeb


Terms of business | Privacy policy

© CFH Total Document Management Ltd. All Rights Reserved

CFH Total Document Management Ltd. St Peter's Park, Wells Rd, Radstock BA3 3UP
Telephone: 01761 416311

accreditation logos

*All asterisked prices are EXCLUSIVE of VAT