Skip to Content
StackBlaze Templates — operator documentation

Email

Transactional email (verification, password reset, usage warnings) with two backends.

Backends

EMAIL_PROVIDERBehaviour
console (default)Emails are printed to stdout — no service needed. Ideal for development.
resendReal delivery via Resend .

Using the console backend

Nothing to configure. Verification and reset links appear in your terminal — click them straight from the dev console. This is the default so the app boots with zero external dependencies.

Switching to Resend

Set the provider and credentials in .env.local:

EMAIL_PROVIDER=resend RESEND_API_KEY=re_... EMAIL_FROM="StackBlaze <onboarding@resend.dev>"

The Resend integration lives at lib/email/resend.ts.

For production delivery, verify your sending domain in Resend and set EMAIL_FROM to an address on that domain. The onboarding@resend.dev default is only for testing.

What sends email

  • Email verification on sign-up.
  • Password reset links.
  • Soft-limit usage warnings (~80% of monthly quota), when AI metering is active.