The SendLetter() method is the simplest way to send a letter through the PostalMethods service.

With this method, you must create a letter which includes the address block in its proper location for the envelope type you wish to use. Letter templates are available for the various envelope types that PostalMethods supports.

Formal Definition


Property Type Comments
Username String As provided during registration
Password String As provided during registration
MyDescription String Up to 100 characters.
Free text. User may add any text to help identify the request (UTF8)
FileExtension String The extension of the attached document
Example: pdf
See List of supported file types
FileBinaryData base64Binary Document to send represented as base64 encoded binary data
WorkMode Default or Production or Development Production indicates the letter should actually be processed (and not simulated); Development forces simulated processing; Default inherits the PostalMethods User’s default Work Mode setting (set in the Control Panel)

Output: SendLetterResponse

Element Type Comments
SendLetterResult int In case of successful submission, a positive number is returned indicating the letter’s unique identifier on the system.
In case of failure, a negative number is returned indicating the failure reason. See the list of Web Service Result Codes.
Send Letters
Securely + Reliably
Send letters securely and reliably from any business application. Use for invoices, quotes, and other important business communications. Enjoy special web-form to postal features and instant notifications.
Simple Process
Easy as 1-2-3
Experience the ease of our streamlined process - developed for efficiency! You submit your document by email or API. We automatically print, collate, insert, and stamp your letter. Your letter is delivered via standard postal service.
Pay As You Go
No Fuss. No Obligations.
Register for free with no obligations! Evaluate the service as long as you need. Once you are ready, set up our user-friendly pay-as-you option to use our service. No fuss. No on-going commitment. Just plain easy!