This chapter covers the core features and capabilities of Receipt Emailer.
# Generate a demo receipt
python src/receipt_emailer.py --action demo --output receipt.html
# Generate from config
python src/receipt_emailer.py --config examples/receipt_data.json --output receipt.html
# Simulate sending an email
python src/receipt_emailer.py --action send --config examples/receipt_data.json
# Output receipt data as JSON
python src/receipt_emailer.py --action demo --format jsonFollow this guide to get Receipt Emailer up and running in your environment.
| Flag | Description |
|---|---|
--action, -a | Action: generate (default), send, demo |
--config, -c | Receipt data JSON file |
--output, -o | Output HTML file (default: stdout) |
--smtp-log | Directory for simulated email files (default: ./smtp_log) |
--format, -f | Output format: html (default) or json |
--verbose, -v | Enable debug logging |
See examples/receipt_data.json for a complete example.
| Field | Type | Description |
|---|---|---|
customer_name | string | Customer display name |
customer_email | string | Delivery email address |
items | array | Line items with description, quantity, unit_price, tax, download_url |
currency | string | ISO 4217 code (USD, EUR, GBP) |
payment_method | object | Type (card/paypal/crypto), last_four, brand |
company_name | string | Your company name |
brand_color | string | Hex color for receipt branding |
refund_policy | string | Refund policy text |
receipt_type | string | payment, refund, or partial_refund |
Get the full Receipt Emailer and unlock everything.
Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.
Access all interactive tools with complete data, all workload profiles, and the full scenario library.
Downloadable source code, configuration files, and working examples from every chapter.
Free updates for life. Every new chapter, tool, and improvement included.