Email & Templates
Transactional email via SMTP, Resend, Mailgun, or SES, with a visual template builder and localized message copy.
Overview
SiteKnock sends transactional email — welcome messages, verification, password resets, invitations, and billing receipts — through a provider of your choice, with a visual template builder in Studio's Email Workspace.
Configure email
"email": {
"enabled": true,
"provider": "resend", // "smtp" | "resend" | "mailgun" | "ses"
"fromEmail": "noreply@myapp.com",
"fromName": "My App",
"templates": true
}
Email is enabled automatically when you turn on email verification, magic-link sign-in, or password reset.
Providers
| Provider | Best for |
|---|---|
| SMTP | Local dev (Mailpit) and self-hosted servers |
| Resend | Modern API-based sending (recommended for production) |
| Mailgun | High-volume transactional email |
| SES | Amazon SES / AWS-native stacks |
Templates and messages
In Studio's Email Workspace you design templates visually and bind blocks to runtime variables, then manage the copy for each message with full locale support. Previews resolve placeholders into realistic values so you see exactly what recipients get. See the Email Workspace guide.
Sending email from your backend
To send a custom email: create the message in Studio, design or assign a template, then call the email send API from your backend route. The kit handles transport through your configured provider.
Local testing with Mailpit
In development, all outgoing email is captured by Mailpit instead of being delivered — open http://localhost:8025 to inspect it. Set EMAIL_PROVIDER=smtp and SMTP_HOST=localhost for local dev.
Mailpit means you can test every email flow — verification, reset, invitations — without sending real email or configuring a provider.