Resend Email Setup Guide
Learn how to set up Resend for email authentication and notifications in your SuperFast application.
About Resend
Resend is a modern email API that makes it easy to send transactional emails. It's perfect for authentication emails, notifications, and other transactional emails in your application.
Setting Up Resend
Follow these steps to set up Resend for your SuperFast application:
1. Create a Resend Account
First, you need to create a Resend account:
- Sign up for a Resend account
- Verify your email address
2. Set Up Your Domain
Configure your domain for sending emails:
- Go to the [Domains] section in your Resend dashboard
- Click [+ Add Domain]
- It's recommended to add a subdomain like
resend.yourdomain.com
- Follow all the DNS verification steps provided by Resend
- Once done, click [Verify DNS Records] on the top right to verify your domain
- [Note]: DNS verification might take a few minutes to complete
3. Get Your API Key
Create an API key in your Resend dashboard:
- Go to the [API Keys] section in your Resend dashboard
- Click [+ Create API Key]
- Give your API key a name (you can name it whatever you want)
- Keep the other options as default
- Click [Add]
- [Important]: Copy the API key immediately - you can only see it once
4. Configure Environment Variables
Add the following environment variables to your .env.local
file:
Important
Make sure to replace the placeholder values with your actual credentials:
.env
# Resend API KeyRESEND_API_KEY=re_123...# From Email Address (must be verified in Resend)EMAIL_FROM=noreply@yourdomain.com
Resend Integration Complete
Your email system is now set up with Resend. The implementation includes:
- Domain verification and configuration
- API key setup and security
- Email utility for sending transactional emails
- Error handling and logging