Skip to content

Platform

Email

Sends through Resend when it's configured and logs the message otherwise. Outside production the last 50 sends are kept in a dev outbox, which the browser tests read to follow links.

What you get

  • Plain JSX templates rendered to HTML and text
  • A typed facade for magic links, verification, reset, invitations and welcome emails
  • A dev outbox at /api/dev/outbox

Turn it on

  • RESEND_API_KEY and EMAIL_FROM

Where it lives

  • lib/email.ts
  • lib/emails.ts
  • emails/