Setting Up the Subscribe Form
Follow this guide to set up a subscribe form for your website using [Resend]
⚡ Quick Checklist
Section titled “⚡ Quick Checklist”Before you start, ensure you have:
- A Resend Account (GitHub login recommended).
- Admin access to your Netlify dashboard.
- Access to the Astro-Church CMS.
Step 1: Generate a Resend API Key
Section titled “Step 1: Generate a Resend API Key”- In your Resend dashboard, navigate to API Keys.
- Click + Create API key
- Name: Use your project or GitHub repo name.
- Copy the key immediately. It will start with
re_***. You won’t be able to see it again.
Step 2: Find your Audience Segment ID
Section titled “Step 2: Find your Audience Segment ID”-
Navigate to Audience > Segments.
-
Select your target segment (e.g., “General”).
-
Copy the ID value found in the segment settings.
Step 3: Add Variables to Netlify
Section titled “Step 3: Add Variables to Netlify”To securely bridge your website and Resend, you must add your credentials to Netlify:
-
In Netlify, go to Project confiuration > Environment variables
-
Click Add a variable > Add a single variable for each.:
| Key | Value |
|---|---|
RESEND_API_KEY | Your re_*** from Step 1 |
RESEND_SEGMENT_ID | Your Segment ID from Step 2 |