MailKite Email Support Now Available in LaunchFast Starter…
LaunchFast LogoLaunchFast
Blog
500 words3 min read

MailKite Email Support Now Available in LaunchFast Starter Kits

We're excited to announce that MailKite email support is now available in all LaunchFast starter kits. Send transactional emails through MailKite with a single environment variable change.

Rishi Raj Jain
Rishi Raj JainAuthor
MailKite Email Support Now Available in LaunchFast Starter Kits

We’re thrilled to announce that MailKite email support is now available in all LaunchFast starter kits! MailKite joins AutoSend, Resend, Postmark, SendGrid, and Mailgun as a first-class transactional email provider, so you can pick the sender that fits your product and swap it in without touching your application code.

What is MailKite?

MailKite is a developer-focused transactional email API. It handles verification emails, magic links, password resets, and product notifications with a simple REST endpoint and bearer-token authentication. If you already send email through an HTTP API, MailKite will feel immediately familiar.

Getting Started with MailKite

  1. Choose Your Framework: Select from Astro, Next.js, or SvelteKit
  2. Configure MailKite: Set EMAIL_PROVIDER to mailkite and add your MAILKITE_API_KEY
  3. Send Emails: Reuse the same sendEmail helper the starter kit already ships with
  4. Ship: Every transactional email in your app now routes through MailKite

Here is exactly what the starter kit does under the hood when EMAIL_PROVIDER is set to mailkite:

if (!getSecret('MAILKITE_API_KEY')) throw new Error(`MAILKITE_API_KEY environment variable not set.`)
// Send an email using MailKite
// Read more on https://mailkite.dev/docs/
const myHeaders = new Headers()
myHeaders.append('Content-Type', 'application/json')
myHeaders.append('Authorization', `Bearer ${getSecret('MAILKITE_API_KEY')}`)
return await fetch('https://api.mailkite.dev/v1/send', {
method: 'POST',
headers: myHeaders,
body: JSON.stringify({
from: body.from, // "LaunchFast <contact@launchfa.st>"
to: body.to,
subject: body.subject,
text: body.text,
}),
})

That is the entire integration. Because it lives behind the same sendEmail function every provider uses, none of your calling code changes when you switch to MailKite.

Configuration

Add two values to your .env file:

Terminal window
## "resend" or "sendgrid" or "postmark" or "mailgun" or "autosend" or "mailkite"
EMAIL_PROVIDER="mailkite"
## MailKite Environment Variable
MAILKITE_API_KEY="mk_live_..."

That is it. The starter kit reads MAILKITE_API_KEY as a server-side secret through Astro’s typed environment, so your key never leaks to the client.

What’s Included

Every LaunchFast starter kit with MailKite support includes:

  • Email Templates: Pre-built templates for verification, welcome, and notifications
  • Type Safety: Full TypeScript support for email functions
  • API Routes: RESTful endpoints for sending emails
  • Provider Switching: Flip a single environment variable to change providers

Pricing

MailKite support is included in all our starter kits at no additional cost:

  • Astro Starter Kit: $49 - Buy now
  • Next.js Starter Kit: $49 - Buy now
  • SvelteKit Starter Kit: $49 - Buy now
  • Complete Bundle: $99 (includes all frameworks) - Buy now

Deploy Anywhere

While MailKite works seamlessly with all platforms, our starter kits also support the following email providers with built-in setup:

Get Started Today

Ready to send transactional emails through MailKite with a single environment variable change?

Get LaunchFast Starter Kit and start building with the power of MailKite!

Continue reading