Email Setup
Tracera uses Resend for sending transactional emails (magic links). Email is optional — when not configured, magic link URLs are logged to stdout.Development Mode
WhenRESEND_API_KEY is not set, the email sender operates in log mode:
Production Setup
Create Resend Account
Sign up at resend.com.
Add Sending Domain
Navigate to Domains and add your sending domain. Follow the DNS verification steps (add the provided TXT, MX, and DKIM records).
Configuration
| Variable | Default | Description |
|---|---|---|
RESEND_API_KEY | (empty) | Resend API key. Log mode if unset. |
RESEND_FROM_EMAIL | [email protected] | Sender email address |
MAGIC_LINK_EXPIRY_MINUTES | 10 | How long magic link tokens are valid |
Email Content
Magic link emails contain:- A verification link with a one-time-use token
- The link expires after the configured duration (default: 10 minutes)
- Clicking the link authenticates the user and creates a session
Deliverability
For best deliverability in production:- Verify your sending domain with SPF, DKIM, and DMARC records
- Use a custom
fromaddress on your verified domain - Monitor bounce rates in the Resend dashboard