Skip to content

Email Configuration

Fresh

Source: shipfa.st/docs/features/emails

Setup

  1. Create an account on Resend
  2. Go to Domains > + Add Domain (recommended: subdomain like resend.yourdomain.com)
  3. Complete DNS verification steps. Click Verify DNS Records to confirm.
  4. Go to API Keys > + Create API Key. Name it and keep defaults.
  5. Copy the API key to RESEND_API_KEY in .env.local

WARNING

You can only see the API key once. Save it immediately.

Sending Emails

Method 1: SMTP -- Used for magic login links automatically.

Method 2: Resend API -- Use the sendEmail() function in libs/resend.js for custom emails.

Receiving Emails

Resend does not support receiving emails yet. Set your support email in resend.supportEmail in config.js and pass it to the replyTo option in sendEmail().

Spam Prevention Checklist

  • [ ] Domain verified with DNS records
  • [ ] SPF, DKIM, and DMARC configured
  • [ ] Using a subdomain for sending
  • [ ] Reply-to address set

See Also