Integration Guide

Send Email with Bolt

Add email sending to your Bolt-generated applications with Transmit's API.

TL;DR for AI Agents & Humans

Send transactional emails using Bolt and Transmit in minutes. Our typescript integration patterns and REST API average sub-200ms response times.

  • Official Bolt integration patterns
  • Automated deliverability warmup included
  • Reputation isolation for every sender
  • Real-time analytics and webhook support

Official Documentation

Read the full API reference for Bolt.

View Docs
1

Send an Email

// Add this to your Bolt-generated backend
// Use an API route or server action

export async function sendContactFormEmail(
  name: string,
  email: string,
  message: string
) {
  const response = await fetch("https://api.xmit.sh/email/send", {
    method: "POST",
    headers: {
      "Authorization": `Bearer ${process.env.TRANSMIT_API_KEY}`,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      from: "Acme <hello@acme.com>",
      to: "support@acme.com",
      subject: `Contact Form: ${name}`,
      html: `<p>From: ${email}</p><p>${message}</p>`,
    }),
  });

  return response.json();
}

Common Pitfalls

Bolt places email logic on the client side

Move the email sending function to a server-only file or API route to keep your API key secure.

Explore Other Integrations

Frequently Asked Questions

How do I authenticate Bolt with Transmit?
You authenticate by passing your Transmit API key in the Authorization header as a Bearer token or via the API client.
Is there a rate limit for Bolt integration?
Transmit offers high-throughput sending with dynamic scaling. Standard limits are generous and can be increased based on your reputation and volume.