FeaturesEmails

You don't have to use Resend, but you'll need an email tool to to setup magic login links, abandoned carts emails, etc...

Setup

  • Create a new account on Resend
  • Go to [Domains], click [+ Add Domain]. It's recommended to add a subdomain like resend.yourdomain.com.
  • Do all the DNS verification steps. Once done, click [Verify DNS Records] on the top right to verify your domain. It might take a few minutes.
  • Go to [API Keys], click [+ Create API Key]. Add a name (you can name it whatever you want), and keep the other options as default. Then click [Add].
  • Copy the API key and add it to .env.local as RESEND_API_KEY.
    You can only see the API key once, so make sure to save it.

Sending emails

There are 2 ways to send emails:

1/ SMTP: Emails sent for magic login links will be sent using SMTP, for instance.

2/ Resend API: To send any other emails, use the sendEmail() function in libs/resend.js.

Receiving emails

Resend doesn't support receiving emails, yet.

You can add your support email to resend.supportEmail in config.js and pass it to thereplyTo option in thesendEmail() function in libs/resend.js to receive replies on it.

Checklist to avoid the spam folder

Emails Helper