Prerequisites
Before you start, you’ll need:- A Resend API key
- A verified domain
1. Create Supabase function
Create a new function locally:2. Edit the handler function
Paste the following code into theindex.ts file:
index.ts
3. Deploy and send email
Run function locally:
4. Try it yourself
Supabase Edge Functions Example
See the full source code.