Skip to content
Launch Kit logo

Connect

Resend

Add an API key, set the from-address in config.ts, and the welcome email already sends after checkout.

Launch Kit sends mail through sendEmail() in libs/resend.ts. Today that helper is used once: the Stripe webhook sends a welcome message after checkout.session.completed.

Key

Create an account at resend.com. Copy an API key into RESEND_API_KEY.

CredentialEnv varWhat the kit does with it
API keyRESEND_API_KEYAuthenticates resend.emails.send

No other Resend setting is required in env.

From-addresses

These live in config.ts, not env:

KeyUsed?What to put
resend.fromAdminYesYour App <hello@your-domain.com> — this is the from on every sendEmail() call
resend.fromNoReplyNoReserved. The helper does not read it
resend.supportEmailFooter + legalA real inbox, or leave empty

Resend’s test sender works without DNS. You can leave the default from-address while you develop. Mail goes to your own account’s inbox.

Send another email

Keep libs/resend.ts. Call it from a server file:

ts
import { sendEmail } from "@/libs/resend";

await sendEmail({
  to: user.email,
  subject: "Your subject",
  text: "Plain text body",
  html: "<p>HTML body</p>",
});

Optional replyTo is already on the helper.