Configuration
Set the following environment variables to enable email delivery:| Variable | Default | Description |
|---|---|---|
SMTP_HOST | — | SMTP server address (e.g., smtp.sendgrid.net, smtp.resend.com) |
SMTP_PORT | 587 | SMTP server port |
SMTP_USERNAME | — | SMTP auth username |
SMTP_PASSWORD | — | SMTP auth password |
SMTP_FROM_ADDRESS | — | Default “from” email address (e.g., orders@mystore.com) |
RAILS_HOST | example.com | Host used in email URLs |
SMTP_HOST is not set, emails are printed to the Rails log instead of being sent.
Provider Examples
- SendGrid
- Resend
- Postmark
- Amazon SES

