Welcome! This comprehensive guide will walk you through the complete workflow of mailing HTML documents physically to any destination address. You'll learn how to configure your Developer Panel, upload HTML templates with dynamic variables, select shipping options, and mail personalized documents from start to finish.
Important: About Sandbox vs Production
This article uses Sandbox environment for all examples and testing. The Sandbox allows you to test the complete workflow without processing real payments or mailing actual documents.
Action: Copy the id value. This is your template_id needed for the final step.
Understanding Dynamic Variables:
Your HTML template can include variables in double curly braces (e.g., {{name}}, {{company_name}}). These will be replaced with actual values when you mail the document in Step 5.
Example: If your HTML contains "Dear {{name}}", and you provide {"name": "John Doe"} when mailing, it will print as "Dear John Doe".
Step 5: Mail the Document with Dynamic Content
The final step! This tells our facility to process your HTML template, replace the dynamic variables with actual values, and physically mail the document to your payee.
How to set up the request:
In your API tool, change the Body format to form-data.
Add five fields with these exact KEY names:
template_id - The ID from Step 4
reply_id - The sender ID from Step 2
payee_id - The recipient ID from Step 1
shipping_type - The shipping type ID from Step 3
json_content - JSON object with values for your template variables
Critical: JSON Content Format
The json_content field must be valid JSON. Common mistake: Missing colons between keys and values.
Key: template_id Type: Text Value:y0bL3YGdLG1X7wAKey: reply_id Type: Text Value:qx5NrWjymj2n3l6Key: payee_id Type: Text Value:bz3Aj3ZyJ9eVw6EKey: shipping_type Type: Text Value:1Key: json_content Type: Text Value: {"name":"ZilMoney","Company_name":"ZilMoneyLLC"}
Done! Our facility has received your order and will begin processing the physical delivery. The HTML template variables will be replaced with your JSON values before printing and mailing.
Understanding Variable Replacement
When you mail the document, the system automatically replaces template variables with the values you provide in json_content.
Example:
Your HTML Template contains:
Dear {{name}},
Thank you for your business with {{Company_name}}.
Guide: How to Create, Print and Mail Checks with Custom HTML Attachments Welcome! This guide will show you how to create checks with custom HTML attachments (like paystubs, invoices, or receipts) and then either print them or mail them physically ...
Guide: How to Print and Mail Employee Paychecks with Custom Paystubs Welcome! This guide will show you how to create checks with custom paystub attachments and then either print them or mail them physically through our service. Your paystub will be ...
Guide: How to Mail Documents (PDF) Welcome! This comprehensive guide will walk you through mailing PDF documents physically to any destination address. With a single API request, you can upload your document, specify sender and recipient details, and ...
Guide: How to Mail Checks with PDF Attachments Welcome! This simplified guide will walk you through the complete workflow: from creating a check record with advanced details to physically mailing it with a PDF attachment (like an invoice or receipt). ...
Guide: How to QuickMail a Check Welcome! This simplified guide will walk you through the complete workflow for mailing a physical check using our API. Learn how to create a check record and send it for physical printing and delivery. Important: About ...