RecipesOverview

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.

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:

  1. The Problem - What pain point does this solve?
  2. The Solution - One-paragraph overview
  3. Prerequisites - What you need before starting
  4. Step-by-Step Guide - Implementation walkthrough
  5. Full Code Example - Copy-paste ready code
  6. 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.