Send transactional emails with a unified API. Supports HTML templates, React Email components, and provider-specific features like deliverability tracking.
Modern email API with React Email support and excellent deliverability
RESEND_API_KEYScalable email delivery with analytics and template management
SENDGRID_API_KEYSelf-hosted SMTP email sending with no third-party dependencies
SMTP_HOSTSMTP_PORTSMTP_USERSMTP_PASSSend 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>',
})Add email to your Primstack project with a single command:
prim email init