Order Confirmation Email Template
Professional order confirmations that reduce support tickets and build customer confidence. Clear details, shipping info, and next steps.
Email Preview
Use with AI Assistants
Copy and paste this prompt into your AI assistant
Implement an order confirmation email using the Ark API.
Fetch the template and code examples from: https://arkhq.io/templates/order-confirmation.md
Replace the template variables with the actual values for:
- {{name}}: The recipient's name
- {{email}}: The recipient's email
- Other variables as documented in the template
Then send via Ark API.The AI will fetch the template from the URL and use it to send your email through Ark.
Why order confirmations matter
- Order confirmations have 70%+ open rates — your most-read email
- Missing confirmations cause immediate support tickets
- Clear order details reduce 'where's my order' inquiries by 40%
- Opportunity to reinforce brand and set delivery expectations
Code Examples
Use the HTML template above with these code examples
import Ark from "@arkhq/sdk";
const ark = new Ark({ apiKey: process.env.ARK_API_KEY });
interface OrderItem {
name: string;
quantity: number;
price: number;
}
interface Order {
id: string;
items: OrderItem[];
subtotal: number;
shipping: number;
total: number;
shippingAddress: string;
}
async function sendOrderConfirmation(
email: string,
name: string,
order: Order
) {
const itemsHtml = order.items
.map(item => `
<div style="display:flex;justify-content:space-between;margin-bottom:10px;">
<span>${item.name} × ${item.quantity}</span>
<span>$${item.price.toFixed(2)}</span>
</div>
`)
.join("");
await ark.emails.send({
from: "[email protected]",
to: email,
subject: `Order confirmed — #${order.id}`,
html: `
<h1>Order Confirmed!</h1>
<p style="color:#666;">Order #${order.id}</p>
<p>Hi ${name},</p>
<p>Thanks for your order! We're preparing it now.</p>
<div style="background:#f9f9f9;border-radius:8px;padding:20px;margin:20px 0;">
<h2 style="font-size:16px;margin:0 0 15px 0;">Order Summary</h2>
${itemsHtml}
<hr style="border:none;border-top:1px solid #eee;margin:15px 0;">
<div style="display:flex;justify-content:space-between;font-weight:bold;">
<span>Total</span>
<span>$${order.total.toFixed(2)}</span>
</div>
</div>
<a href="https://yourstore.com/orders/${order.id}" style="background:#000;color:#fff;padding:12px 30px;text-decoration:none;border-radius:6px;display:inline-block;">View Order</a>
`,
});
}Best Practices
- Send within seconds of order completion
- Include order number prominently in subject and body
- List all items with prices — no surprises
- Show shipping address for verification
- Set clear expectations for shipping timeline
- Make it easy to contact support
Frequently Asked Questions
Should I send order confirmation immediately or after payment confirms?
Send immediately after payment is confirmed by your payment processor. Don't wait for inventory checks or other backend processes — those can follow in separate notifications if needed.
What if the shipping address is wrong?
Include a clear link to update shipping address (with a time limit before shipping). Many customers catch errors when seeing their address in the confirmation email.
Should I include product images?
Product images increase engagement but add complexity (image hosting, email client compatibility). For simple orders, text is fine. For visual products (fashion, home goods), images are worth it.
How do I handle multi-item orders?
Loop through items and display each with quantity and price. Show subtotal, shipping, tax, and total separately. Group by vendor if you're a marketplace.
Related Templates
Learn More
Ready to send emails?
Get started with Ark in under 2 minutes. $2.50 welcome credit included.