Skip to main content

Configuring Resend for Email Delivery

Resend is a powerful email API that allows you to send transactional emails with ease. This guide will walk you through the process of configuring Resend for your production environment, including setting up a custom SMTP server via their integrations.

Prerequisites

  • A Resend account.
  • Access to your domain's DNS settings.

Steps to Configure Resend

1. Verify Your Domain

  1. Log in to your Resend dashboard.
  2. Navigate to "Domains" and click "Add Domain".
  3. Enter your domain name and follow the instructions to add the necessary DNS records.
  4. Wait for DNS propagation and domain verification (this may take up to 48 hours).

2. Set Up Custom SMTP Server

  1. In the Resend dashboard click API Keys.
  2. Create a new API Key.
  3. Note down the API Key - this is your SMTP password.
  4. Now go to settings and click "SMTP".
  5. Note down the SMTP settings provided:
    • SMTP Host: smtp.resend.com
    • Port: 465
    • Username: resend
    • Password: Your API Key

3. Update Supabase SMTP Settings

  1. Log in to your Supabase dashboard.
  2. Navigate to "Project Settings" > "Auth" > "SMTP Settings".
  3. Enable custom SMTP server and enter the Resend SMTP details:
    • Sender Email: noreply@yourdomain.com (use your verified domain)
    • Sender Name: Your application name
    • Host: smtp.resend.com
    • Port: 465
    • User: resend
    • Password: Your Resend SMTP password (API Key)

4. Update Your Environment Variables

Update your apps/web/.env.local file with the Resend API key: