Emails
Send transactional email through Resend, Postmark or SendGrid.
Requires:Works on its own
Providers
Pick one to update the preview and filesList prices at the time of writing. Verify before you rely on them.
Preview
What it adds
5 things, working end to end- A single sendEmail server action with to, subject, html, text, from and reply-to
- The provider client and its config in lib/emails, so the rest of the app never imports a vendor SDK
- A base HTML email layout built from plain string templates (not React Email, no JSX)
- A small email form component to try it out
- The sender and reply-to addresses come from EMAIL_FROM and EMAIL_REPLY_TO
Set up Resend
Accounts and keys, in this order- 1Create an API keyCreate a key with sending access (resend.com/api-keys)..envRESEND_API_KEY="..."
- 2Verify your sending domainAdd your domain and the DNS records your provider shows, then wait for it to verify.ResendDomains or Sender authentication
- 3Set the senderUse an address on the verified domain..envEMAIL_FROM="noreply@yourdomain.com"EMAIL_REPLY_TO="support@yourdomain.com"NEXT_PUBLIC_APP_URL="http://localhost:3000"
- 4Check it worksSign up in the app. The verification email should arrive within a minute.
Environment variables
For the selected provider.env
# Sender address
EMAIL_FROM=
# Reply-to address
EMAIL_REPLY_TO=
# Public URL of the app, used in links
NEXT_PUBLIC_APP_URL=
# API key from resend.com
RESEND_API_KEY=
Works with
Other modules this one connects toAdd it to your repo
Pick the preset in the builder, check the providers, and download a repo that already has this module wired in.
