Order Confirmation Emails That Build Trust

Send professional order confirmations instantly after purchase. Keep customers informed with tracking details, order summaries, and next steps.

  • Instant delivery after checkout
  • Dynamic order details and totals
  • Tracking information integration
  • Mobile-responsive design
  • Receipt and invoice formatting

Code Example

Send order confirmation emails with the TigerMail API.

interface OrderItem {
  name: string;
  quantity: number;
  price: number;
}

interface Order {
  id: string;
  items: OrderItem[];
  total: number;
  customerName: string;
  customerEmail: string;
  shippingAddress: string;
}

async function sendOrderConfirmation(order: Order) {
  const itemsHtml = order.items
    .map(item => `
      <tr>
        <td>${item.name}</td>
        <td>${item.quantity}</td>
        <td>$${item.price.toFixed(2)}</td>
      </tr>
    `)
    .join("");

  const response = await fetch("https://tigermail.io/api/v1/send", {
    method: "POST",
    headers: {
      "Authorization": `Bearer ${process.env.TIGERMAIL_API_KEY}`,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      to: [order.customerEmail],
      from: "orders@yourstore.com",
      subject: `Order Confirmed #${order.id}`,
      html: `
        <h1>Thanks for your order!</h1>
        <p>Hi ${order.customerName},</p>
        <p>Order #${order.id} has been confirmed.</p>

        <h2>Order Summary</h2>
        <table>
          <tr><th>Item</th><th>Qty</th><th>Price</th></tr>
          ${itemsHtml}
          <tr><td colspan="2"><strong>Total</strong></td><td><strong>$${order.total.toFixed(2)}</strong></td></tr>
        </table>

        <h2>Shipping To</h2>
        <p>${order.shippingAddress}</p>

        <p><a href="https://yourstore.com/orders/${order.id}">Track Your Order</a></p>
      `,
    }),
  });

  return response.json();
}

Best Practices

Follow these guidelines for effective order confirmation emails.

Send immediately after successful payment
Include complete order summary with prices
Add estimated delivery date when available
Provide clear contact information for support
Include order number prominently
Add links to track order and view receipt

Skip the Boilerplate with AI

Don't want to write this code yourself? Use our AI-native integration. Copy instructions into Claude Code or Cursor, and let AI generateorder confirmation emails code tailored to your project.

Start sending order confirmation emails

Get 1,000 free emails per month. Set up in under 5 minutes.