Setting Up a Resend for Email Functionality
Last updated
Last updated
1. Introduction
Integrating a custom SMTP like Resend into your Supabase project can be a real game changer, especially if you're scaling up. While Supabase does a solid job for basic email functionalities, it’s somewhat limited when it comes to handling a larger volume, plus it has some rate limits that might slow you down as you grow.
Using Resend with Supabase not only lets you bypass those rate limits but also gives you beefed-up control and better visibility over your emails. This means fewer "I didn’t get the email" moments from your users because now, you can track everything — whether emails are sent, delivered, or bounced. Let’s get this setup rolling
2. Setting Up a Resend Account
Create a Resend Account:
Head to Resend: Navigate to Resend’s sign-up page. Looks familiar? It should — just like any sign-up page you've seen a thousand times.
Choose Your Poison: You’ve got options. Go old-school with an email and password combo, or speed things up with GitHub or Google.
Quick Tip: If you go with GitHub or Google, it's mostly a one-click affair — hit the button, authorize the app, and you're in.
One More Thing: Whichever way you slice it, make sure you remember which method you used — it'll save you a headache later.
Verify Your Email:
Check Your Inbox: After signing up, Resend will send you an email to make sure it's really you. No email? Check the spam folder — it can be sneaky.
Hit the Link: Click the verification link in the email. Bingo, your account is ready to rock.
And that’s it — you’re ready to start sending emails with Resend from your Supabase project. Just make sure to keep your login creds safe
3. Configuring a Custom Domain
Add Your Domain to Resend
In Resend, navigate to the 'Domains' section.
Hit the 'Add domain' button.
Enter your domain like updates.yourdomain.com
and pick a region that’s closest to you for better performance.
Configure DNS Settings
Important Note: While we’re using Cloudflare in this example, the following steps can be applied to any domain provider you're using. Just locate the DNS settings section on your provider’s platform.
Sign in to your Cloudflare account and visit the DNS management page.
Enter the DNS records Resend has given you.
Verify Domain in Resend
Go back to Resend and look for a verification option for your domain.
Press 'Verify DNS Records'. If everything’s in place, you’ll get a green light indicating your domain is all set.
4. Final Check
Your emails now carry your domain’s weight, paving the way for better open rates and a stronger brand presence.
Remember, any domain provider's process will be similar: add records, wait for propagation, verify, and you’re golden.