Feature: Email
Section titled “Feature: Email”ɳSelf supports email delivery through built-in SMTP configuration and a growing list of provider integrations.
What’s Included
Section titled “What’s Included”| Capability | Description |
|---|---|
| SMTP | Direct SMTP for any mail server |
| Auth email | Magic links, email verification, password reset |
| Mailpit (dev) | Local email capture UI for development |
| 16 provider integrations | Via the email plugin ecosystem |
Built-in SMTP Configuration
Section titled “Built-in SMTP Configuration”Configure SMTP in .env:
SMTP_HOST=smtp.example.comSMTP_PORT=587SMTP_USER=noreply@example.comSMTP_PASSWORD=your-smtp-passwordSMTP_FROM=noreply@example.comSMTP_SECURE=trueDevelopment Mode (Mailpit)
Section titled “Development Mode (Mailpit)”In development, all emails are captured by Mailpit. No emails leave the server. View captured emails at the Mailpit URL from nself urls.
Provider Integrations
Section titled “Provider Integrations”The following providers are supported via plugins:
| Provider | Plugin |
|---|---|
| SendGrid | plugin-sendgrid (pro) |
| Mailgun | plugin-mailgun (pro) |
| Postmark | plugin-postmark (pro) |
Install with:
nself plugin install sendgridKey Configuration Variables
Section titled “Key Configuration Variables”| Variable | Description | Default |
|---|---|---|
SMTP_HOST | SMTP server hostname | Required |
SMTP_PORT | SMTP port | 587 |
SMTP_USER | SMTP username | Required |
SMTP_PASSWORD | SMTP password | Required |
SMTP_FROM | From address | Required |
SMTP_SECURE | Use TLS | true |
See Also
Section titled “See Also”- Config-Env-Vars: full env var reference
- Feature-Auth: how auth uses email for magic links