Lead Collection Form
File locations:
src/components/leadForm.tsx
Collect user emails and save them into your email list. This component works with Resend, make sure you have the email delivery feature configured properly.
Go to Resend, navigate to Audiences -> API
:
Copy the audience ID and paste it into your .env
as the AUTH_RESEND_AUDIENCE_ID
variable.
To use the component, import it into your page.tsx
like this:
import LeadForm from "@/components/leadForm";