Features
E-mails
At the end of this tutorial, you’ll have a resend account ready for deploy
You don’t have to use Resend, but you’ll need an email tool to setup your transactional emails
TurboStack uses Resend to send transactional emails by default. They have an amazing documentation that allows you to setup your account quickly, just like TurboStack.
First things first
- Create your account on Resend
- At “Overview” tab, you’ll see the following image:
- Click the button and then copy the generated key into your
.env.local
file:
.env.local
- You can now click the “Send Email” button to confirm everything is fine.
Validate your domain at Resend
- Go to the “Domains” page on Resend.
- Click “Add domain” button and enter your domain name.
- You’ll then see instructions to add 3 DNS entries at your Registrar.
- After adding them at your Registrar, you can click the “Verify DNS Records button.
- When the DNS line status go from “Pending” to “Verified” you’ll be done.
Creating an Audience to collect leads
Collecting leads is an important task to any Indie Hacker. Resend help us with an “Audience”, allowing us to Manage subscribers of a given account.
To create an audience, do the following steps:
- Go to the “Audience” page on Resend
- Create an “Audience” and give it a name of your choice.
- Copy the generated
audience_id
to your.env.local
file:
.env.local
- You can now use the endpoint
/api/leads
to collect leads to your audience programatically:
apps/web/components/lead/lead-form.tsx