Contents

Chapter 1

Features

This chapter covers the core features and capabilities of Receipt Emailer.

Features

  • Professional, email-client-compatible HTML receipts
  • Inline CSS with table-based layout (works in Gmail, Outlook, etc.)
  • Itemized charges with quantity, price, and tax per item
  • Download links for digital products
  • Payment method display (masked card, PayPal, crypto)
  • Discount and tax breakdown
  • Refund receipt variant with red header
  • Simulated SMTP delivery (writes .eml files for inspection)
  • MIME multipart with HTML + plain text fallback
  • Python stdlib only — zero dependencies

Quick Start

bash
# 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 json
Chapter 2

CLI Reference

Follow this guide to get Receipt Emailer up and running in your environment.

CLI Reference

FlagDescription
--action, -aAction: generate (default), send, demo
--config, -cReceipt data JSON file
--output, -oOutput HTML file (default: stdout)
--smtp-logDirectory for simulated email files (default: ./smtp_log)
--format, -fOutput format: html (default) or json
--verbose, -vEnable debug logging

Configuration Reference

See examples/receipt_data.json for a complete example.

FieldTypeDescription
customer_namestringCustomer display name
customer_emailstringDelivery email address
itemsarrayLine items with description, quantity, unit_price, tax, download_url
currencystringISO 4217 code (USD, EUR, GBP)
payment_methodobjectType (card/paypal/crypto), last_four, brand
company_namestringYour company name
brand_colorstringHex color for receipt branding
refund_policystringRefund policy text
receipt_typestringpayment, refund, or partial_refund
Chapter 3
🔒 Available in full product

License

You’ve reached the end of the free preview

Get the full Receipt Emailer and unlock everything.

All Chapters

Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.

Full Tool Suite

Access all interactive tools with complete data, all workload profiles, and the full scenario library.

Source Files

Downloadable source code, configuration files, and working examples from every chapter.

Lifetime Updates

Free updates for life. Every new chapter, tool, and improvement included.

Buy Now — $19 →
📦 Free sample included — download another copy for the full product.
Receipt Emailer v1.0.0 — Free Preview