Recipes
Real-world solutions for common transactional email and document generation use cases. Each recipe includes complete code examples that you can copy and adapt for your needs.
Featured Recipe
Replace SendGrid + DocRaptor with One API Call
The Problem: You’re using 3-4 services (SendGrid, DocRaptor/Puppeteer, S3) and 25+ lines of code to send an email with a PDF attachment.
The Solution: One API call. No PDF server. No S3 bucket. See the before/after comparison and migration guide.
All Recipes
B2B Invoice Email
Send order confirmations with professionally formatted PDF invoices attached. Perfect for e-commerce and SaaS billing.
Weekly Excel Report
Automate weekly analytics reports with Excel spreadsheet attachments. Great for B2B dashboards and reporting.
Order Confirmation + Receipt
E-commerce order confirmations with PDF receipts. Includes itemized orders, shipping details, and payment confirmation.
Recipe Structure
Each recipe follows the same format:
- The Problem - What pain point does this solve?
- The Solution - One-paragraph overview
- Prerequisites - What you need before starting
- Step-by-Step Guide - Implementation walkthrough
- Full Code Example - Copy-paste ready code
- Expected Output - What the result looks like
Suggest a Recipe
Have a use case that isn’t covered? Email us at support@formamail.com with your suggestion.