Email

Send transactional emails with a unified API. Supports HTML templates, React Email components, and provider-specific features like deliverability tracking.

transactionalsmtpnotificationstemplates

Providers

Resend

Modern email API with React Email support and excellent deliverability

resend
RESEND_API_KEY

SendGrid

Scalable email delivery with analytics and template management

@sendgrid/mail
SENDGRID_API_KEY

Nodemailer

Self-hosted SMTP email sending with no third-party dependencies

nodemailer
SMTP_HOSTSMTP_PORTSMTP_USERSMTP_PASS

Usage

Send an email

Send transactional email through the unified API

import { email } from '@/lib/email'

await email.send({
  to: '[email protected]',
  subject: 'Welcome to our app',
  html: '<h1>Welcome!</h1><p>Thanks for signing up.</p>',
})

Get Started

Add email to your Primstack project with a single command:

prim email init