Free email template
Order confirmation email template
A ready-to-use order confirmation email template for e-commerce, with subject lines, an order summary table and responsive HTML. Copy it, swap in your brand and variables, and send.
Last reviewed November 2026
Order #{{order_number}} confirmed · We'll email you again when it ships.
order-confirmation.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="x-apple-disable-message-reformatting">
<title>Order #{{order_number}} confirmed</title>
</head>
<body style="margin:0;padding:0;background:#f4f4f5;">
<div style="display:none;max-height:0;overflow:hidden;opacity:0;">We'll email you again when it ships.</div>
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0" style="background:#f4f4f5;">
<tr><td align="center" style="padding:32px 16px;">
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0" style="max-width:560px;background:#ffffff;border-radius:12px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;">
<tr><td style="padding:32px 32px 0;font-size:18px;font-weight:700;color:#18181b;">Acme</td></tr>
<tr><td style="padding:24px 32px 8px;">
<h1 style="margin:0 0 16px;font-size:22px;line-height:30px;color:#18181b;">Thanks for your order!</h1>
<p style="margin:0 0 16px;font-size:16px;line-height:24px;color:#3f3f46;">Hi {{first_name}}, we've received your order and are getting it ready. We'll email you again when it ships.</p>
<table role="presentation" cellspacing="0" cellpadding="0" border="0" style="margin:8px 0 24px;"><tr><td style="border-radius:8px;background:#18181b;"><a href="https://acme.com/orders/{{order_number}}" style="display:inline-block;padding:12px 24px;font-size:15px;font-weight:600;color:#ffffff;text-decoration:none;border-radius:8px;">View order</a></td></tr></table><table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0" style="margin:8px 0 24px;border-top:1px solid #e4e4e7;"><tr><td style="padding:10px 0;border-bottom:1px solid #e4e4e7;font-size:14px;color:#71717a;">Order</td><td align="right" style="padding:10px 0;border-bottom:1px solid #e4e4e7;font-size:14px;color:#18181b;">#10482</td></tr><tr><td style="padding:10px 0;border-bottom:1px solid #e4e4e7;font-size:14px;color:#71717a;">Merino crew sweater × 1</td><td align="right" style="padding:10px 0;border-bottom:1px solid #e4e4e7;font-size:14px;color:#18181b;">$89.00</td></tr><tr><td style="padding:10px 0;border-bottom:1px solid #e4e4e7;font-size:14px;color:#71717a;">Shipping</td><td align="right" style="padding:10px 0;border-bottom:1px solid #e4e4e7;font-size:14px;color:#18181b;">$5.00</td></tr><tr><td style="padding:10px 0;border-bottom:1px solid #e4e4e7;font-size:14px;color:#71717a;">Total</td><td align="right" style="padding:10px 0;border-bottom:1px solid #e4e4e7;font-size:14px;color:#18181b;font-weight:700;">$94.00</td></tr></table>
<p style="margin:0 0 16px;font-size:16px;line-height:24px;color:#3f3f46;">Questions about your order? Just reply to this email.</p>
</td></tr>
<tr><td style="padding:16px 32px 32px;border-top:1px solid #f4f4f5;font-size:13px;line-height:20px;color:#a1a1aa;">You're receiving this because you placed an order with Acme.<br>Acme Inc., 123 Market St, San Francisco, CA</td></tr>
</table>
</td></tr>
</table>
</body>
</html>Subject line ideas
- Order #{{order_number}} confirmed
- Thanks for your order, {{first_name}}!
- We've received your order
Preheader: We'll email you again when it ships.
Best practices
- Send immediately after payment succeeds.
- Include the order number in the subject so customers can search for it.
- Keep promotions to a minimum; this is a transactional email.
Variables used
{{first_name}}, {{order_number}}, {{items}}, {{total}}
Plain-text version
Always send a text part alongside HTML. It helps deliverability and accessibility.
Thanks for your order!
Hi {{first_name}}, we've received your order and are getting it ready. We'll email you again when it ships.
View order: https://acme.com/orders/{{order_number}}
Order: #10482
Merino crew sweater × 1: $89.00
Shipping: $5.00
Total: $94.00
Questions about your order? Just reply to this email.
--
You're receiving this because you placed an order with Acme.
Send it with the API
POST /v1/emails
curl -X POST https://stackemails.com/v1/emails -H "Authorization: Bearer $STACKEMAILS_API_KEY" -H "Content-Type: application/json" -d '{
"from": "Acme <hello@mail.acme.com>",
"to": "ada@example.com",
"subject": "Order #{{order_number}} confirmed",
"html": "<!-- the HTML above, with variables filled in -->",
"text": "<!-- the plain-text version -->",
"tags": [{ "name": "template", "value": "order-confirmation" }]
}'