Echo

Email Setup

Configure Resend to send beautiful transactional emails

What is Resend?

Modern email API for developers

Resend provides a simple API for sending transactional emails. Echo uses Resend with React Email templates to send welcome emails, purchase confirmations, and password resets.

1

Create Resend Account

Sign up for Resend

  1. Go to resend.com and create an account
  2. Verify your email address
  3. Complete account setup
2

Get API Key

Copy your Resend API key

  1. Go to API Keys in Resend dashboard
  2. Click Create API Key
  3. Give it a name (e.g., "Echo Production")
  4. Select permissions (Sending access)
  5. Copy the API key (starts with re_)
# Add to .env.local:
RESEND_API_KEY=re_...
EMAIL_FROM=noreply@yourdomain.com
3

Verify Your Domain (Optional but Recommended)

Send emails from your own domain

Note:

You can use onboarding@resend.dev for testing, but you can only send emails to your own account email. For production, verify your domain.

  1. Go to Domains in Resend dashboard
  2. Click Add Domain
  3. Enter your domain (e.g., yourdomain.com)
  4. Add the DNS records Resend provides to your domain registrar
  5. Wait for verification (usually a few minutes)
  6. Update EMAIL_FROM to use your verified domain

Email Templates Included

Pre-built React Email templates

Welcome Email

Sent when users create an account

Purchase Confirmation

Sent after successful CLI purchase

Password Reset

Sent when users request password reset

Testing Emails

Test your email configuration

Test Endpoint:

Use the test endpoint to send test emails:

POST /api/dev/email-test
{
"to": "your-email@example.com",
"template": "welcome"
}

Available Templates:

  • welcome - Welcome email
  • purchase - Purchase confirmation
  • reset - Password reset

Troubleshooting

Emails not sending

Check that RESEND_API_KEY is set correctly

Domain not verified

If using onboarding@resend.dev, you can only send to your Resend account email

Check Resend Dashboard

Go to Resend dashboard → Logs to see delivery status and errors