Products/Email

Email API

Send transactional emails, build campaigns, automate sequences — all with one TypeScript SDK.

$0.50 / 1,000 emails

// Send transactional email
await stack0.mail.send({
from: 'hello@yourdomain.com',
to: 'user@example.com',
subject: 'Welcome to our app!',
html: '<h1>Thanks for signing up!</h1>',
})
// Send with template
await stack0.mail.send({
from: 'security@yourdomain.com',
to: user.email,
templateId: 'password-reset',
templateVariables: {
resetLink: `https://app.com/reset/${token}`,
},
})
TransactionalMarketingTemplatesCampaignsSequencesAnalytics

Features

What's included

Fast Delivery

Sub-second sending with proper SPF, DKIM, and DMARC authentication.

High Deliverability

Automatic bounce handling and suppression list management.

Click & Open Tracking

Real-time tracking for opens, clicks, and engagement metrics.

Template Variables

Use {{name}} syntax or any variable in reusable templates.

TypeScript SDK

Full type safety with autocomplete in your editor.

Webhooks

Real-time delivery, open, click, and bounce events.

Capabilities

Built for production

Send Emails

Single, batch, broadcast, or scheduled delivery with templates.

stack0.mail.send({ to, subject, html })

Manage Audiences

Segment contacts into lists. Import in bulk, track subscriptions.

stack0.mail.audiences.addContact({ email, tags })

Run Campaigns

Design, schedule, and analyze email campaigns with A/B testing.

stack0.mail.campaigns.send({ audienceId, templateId })

Automate Sequences

Build drip workflows with timers, conditions, and event triggers.

stack0.mail.events.track({ eventName, contactEmail })

Track Analytics

Delivery rates, opens, clicks, bounces, and unsubscribes.

stack0.mail.analytics.get({ campaignId })

Domain Authentication

We handle SPF, DKIM, and DMARC. Add DNS records and you're set.

SPF: v=spf1 include:stack0.dev ~all

Use cases

Built for real applications

Welcome Emails

Onboard new users with personalized welcome sequences.

Password Resets

Secure transactional emails with token-based authentication.

Order Confirmations

Send receipts and shipping updates in real-time.

Marketing Campaigns

Newsletters, product launches, and promotional content.

Drip Sequences

Automated flows based on user behavior and events.

Re-engagement

Win back inactive users with targeted campaigns.

Pricing

Simple, usage-based

Email
$0.50/ 1,000 emails
Transactional & marketing email
Templates with variables
Campaigns & sequences
Full analytics dashboard
Webhook events
Domain authentication
No monthly minimum
Get Started

Plans start at $5/month. No long-term contracts.

FAQ

Frequently asked questions

No. Stack0 Email handles both from a single SDK. Send transactional emails (password resets, confirmations) and marketing emails (campaigns, sequences) with the same API.

We guide you through adding SPF, DKIM, and DMARC DNS records. This authenticates your domain and improves deliverability. The dashboard shows verification status in real-time.

Campaigns are one-time broadcasts to an audience (like newsletters). Sequences are automated drip flows triggered by events or timers (like welcome series or cart abandonment).

Yes. Dedicated IP addresses are available as an add-on for high-volume senders who want full control over their sending reputation.

Full delivery tracking including sends, deliveries, opens, clicks, bounces, and unsubscribes. Webhook events for real-time integration.

Yes. Send raw HTML or use our template system with variable substitution. Templates support {{variable}} syntax for personalization.

Ready to build?

Plans start at $5/month.

Start Sending