A service for rendering React-based email templates to HTML and Text.
Tip: Prefer setting this up in a serverless environment for better scalability and cost management.
This service decouples Design (Frontend/React) from Triggering (Backend/Business Logic). The backend only needs to call this API with variables, while the designs are managed independently in this repository.
POST /api/render
Returns JSON: { "html": "...", "text": "..." }
POST /api/render/html
Returns raw HTML body.
POST /api/render/text
Returns plain text body.
christmasnew-year{
"emailModule": "general",
"template": "christmas",
"variables": {
"email": "user@example.com",
"name": "John Doe"
}
}