Industry

Email infrastructure for e-commerce

Transactional email for e-commerce — order confirmations, shipping updates, abandoned-cart recovery, return flows. Idempotent send, signed retryable webhooks, predictable USD pricing.

E-commerce mail is the highest-volume transactional workload most teams operate. Order confirmation, shipping update, delivery confirmation, return label, refund confirmation — and on the marketing side, abandoned cart, post-purchase, win-back. The reliability bar is high: a missing order confirmation is a support ticket; a duplicated charge confirmation is a chargeback dispute.

SNDR is built for this pattern. Idempotent send means a retried order-confirmation job cannot double-deliver. Per-recipient-domain inbox visibility means you see a deliverability slide at Gmail before customer support sees the tickets.

Why SNDR

What this gets you

Idempotent order confirmations

A retried worker job for order #4928 produces one email, not two. The SDK takes an Idempotency-Key derived from your order id; the server returns the existing message id on retry instead of creating a new send.

High-volume scaling without surprise overages

Volume spikes (Black Friday, product launch) are handled at the MTA-pool level. Plan limits trigger notification, not silent overage billing — sends pause until you upgrade or the cycle resets, with clear surfacing.

Per-recipient-domain inbox rate

When order-confirmation deliverability dips at Gmail, you see it in the dashboard within minutes — and can investigate (a content keyword, a sender reputation issue) before support tickets pile up.

Retried webhooks

Your fulfillment system needs to know which messages bounced. Webhook events carry the email id and are retried up to 12 times, so a brief receiver outage does not lose state.

Abandoned-cart and post-purchase sequences

Scheduled, idempotent, milestone-gated sequences. The cart-abandonment job checks whether the cart was completed before sending; skips if so. Same pattern as the SaaS onboarding guide at /use-cases/saas-onboarding.

List-Unsubscribe compliance for marketing

Gmail and Yahoo's 2024 sender rules require List-Unsubscribe-Post on any bulk-style send. SNDR adds it automatically for marketing-tagged sends; you only publish the unsubscribe URL.

Considerations

What you have to think about

Order confirmation = transactional, not marketing

Order confirmations are user-initiated, expected, and bypass marketing opt-out. Tag them as transactional. Mixing them with marketing in your sending profile harms both — separate by tag and let SNDR route through the appropriate MTA pool.

Webhooks for fulfillment integration

Your fulfillment system probably wants to know about every delivery + bounce. Subscribe to email.delivered, email.bounced, email.unsubscribed and write the events into your fulfillment database keyed by the customer email.

Plaintext alternative is non-optional for receipts

Some spam filters penalise HTML-only mail. SNDR's SDK lets you supply both `html` and `text`; do it. Plaintext alternative is also useful when receipts get forwarded to accounting systems that strip HTML.

Quickstart

Send your first email

  1. Order confirmation with idempotent send

    The most-shipped e-commerce email. Idempotency key derived from the order id means worker retries are safe.

    import { Sndr } from '@rkiza/sndr';
    const sndr = new Sndr(process.env.SNDR_API_KEY!);
    
    async function sendOrderConfirmation(orderId: string) {
      const order = await db.order.findUniqueOrThrow({ where: { id: orderId } });
      const customer = await db.user.findUniqueOrThrow({ where: { id: order.user_id } });
    
      await sndr.emails.send(
        {
          from: 'orders@yourdomain.com',
          to: customer.email,
          subject: `Order #${order.number} confirmed`,
          html: renderOrderConfirmationHtml(order),
          text: renderOrderConfirmationText(order),
          tags: [
            { key: 'kind', value: 'transactional' },
            { key: 'flow', value: 'order_confirmation' },
            { key: 'order_id', value: orderId },
          ],
        },
        { idempotencyKey: `order-confirmation-${orderId}` },
      );
    }

Related

Start sending with SNDR.

3,000 emails a month on the Free plan. No credit card needed. Talk to us if you have specific requirements.