Examples
Order Confirmation
Standard order confirmation with receipt:
{
"fromAddress": "[email protected]",
"fromName": "Shop Orders",
"toAddresses": [
{
"toAddress": "[email protected]",
"toName": "John Customer"
}
],
"subject": "Your Order #12345 Has Been Confirmed",
"htmlBody": "<h1>Order Confirmed</h1><p>Thank you for your purchase. Your order #12345 has been confirmed and will be processed within 1-2 business days.</p>",
"textBody": "Order Confirmed - Thank you for your purchase. Your order #12345 has been confirmed and will be processed within 1-2 business days.",
"attachments": [
{
"fileName": "order_receipt.pdf",
"data": "JVBERi0xLjQKJdPr6eEKMSAwIG9iago8PAovVHlwZSAv...",
"contentType": "application/pdf"
}
],
"customerReference": "order-12345"
}
Password Reset
Time-sensitive password reset email:
{
"fromAddress": "[email protected]",
"fromName": "App Security",
"toAddresses": [
{
"toAddress": "[email protected]",
"toName": "App User"
}
],
"subject": "Password Reset Request - Action Required",
"htmlBody": "<h1>Reset Your Password</h1><p>Click the link below to reset your password:</p><a href=\"https://app.com/reset?token=abc123xyz\" style=\"background: #007bff; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px;\">Reset Password</a><p>This link expires in 24 hours.</p><p>If you didn't request this, please ignore this email.</p>",
"textBody": "Reset Your Password - Click the link below to reset your password: https://app.com/reset?token=abc123xyz. This link expires in 24 hours. If you didn't request this, please ignore this email.",
"customerReference": "pwd-reset-abc123xyz"
}
Account Verification
Critical account verification email:
{
"fromAddress": "[email protected]",
"fromName": "Platform Verification",
"toAddresses": [
{
"toAddress": "[email protected]",
"toName": "New User"
}
],
"subject": "Verify Your Account - Welcome to Platform!",
"htmlBody": "<h1>Welcome to Platform!</h1><p>Please verify your email address by clicking the button below:</p><a href=\"https://platform.com/verify?code=xyz789\" style=\"background: #28a745; color: white; padding: 12px 24px; text-decoration: none; border-radius: 5px; display: inline-block;\">Verify Email</a><p>This verification link expires in 48 hours.</p>",
"textBody": "Welcome to Platform! Please verify your email address by visiting: https://platform.com/verify?code=xyz789. This verification link expires in 48 hours.",
"customerReference": "verification-xyz789"
}
Invoice Delivery
Business invoice with accounting CC:
{
"fromAddress": "[email protected]",
"fromName": "Company Billing",
"toAddresses": [
{
"toAddress": "[email protected]",
"toName": "Business Client"
}
],
"ccs": [
{
"emailAddress": "[email protected]"
}
],
"subject": "Invoice #INV-2024-001 - Payment Due in 30 Days",
"htmlBody": "<h1>Invoice #INV-2024-001</h1><p>Please find your invoice attached. Payment is due within 30 days of the invoice date.</p><p>If you have any questions, please contact our billing department.</p>",
"textBody": "Invoice #INV-2024-001 - Please find your invoice attached. Payment is due within 30 days of the invoice date. If you have any questions, please contact our billing department.",
"attachments": [
{
"fileName": "invoice_INV-2024-001.pdf",
"data": "JVBERi0xLjQKJcfsj6eUKCAg...",
"contentType": "application/pdf"
}
],
"customerReference": "invoice-INV-2024-001"
}
Two-Factor Authentication
Security code delivery:
{
"fromAddress": "[email protected]",
"fromName": "Bank Security",
"toAddresses": [
{
"toAddress": "[email protected]",
"toName": "Bank Customer"
}
],
"subject": "Your Security Code - Do Not Share",
"htmlBody": "<h1>Security Code</h1><p>Your security code is: <strong style=\"font-size: 24px; color: #007bff;\">123456</strong></p><p>This code expires in 10 minutes.</p><p><strong>Never share this code with anyone.</strong></p>",
"textBody": "Your security code is: 123456. This code expires in 10 minutes. Never share this code with anyone.",
"customerReference": "2fa-code-123456"
}
Shipping Notification
Order shipped notification with tracking
{
"fromAddress": "[email protected]",
"fromName": "Store Shipping",
"toAddresses": [
{
"toAddress": "[email protected]",
"toName": "Valued Customer"
}
],
"subject": "Your Order #12345 Has Shipped!",
"htmlBody": "<h1>Your Order Has Shipped!</h1><p>Great news! Your order #12345 has been shipped and is on its way.</p><p><strong>Tracking Number:</strong> 1Z999AA1234567890</p><p>You can track your package at: <a href=\"https://tracking.example.com/1Z999AA1234567890\">Track Package</a></p>",
"textBody": "Your Order Has Shipped! Great news! Your order #12345 has been shipped and is on its way. Tracking Number: 1Z999AA1234567890. You can track your package at: https://tracking.example.com/1Z999AA1234567890",
"customerReference": "shipment-12345"
}
Updated 2 days ago