Serverless
Supabase Edge Functions
Learn how to send your first email using Supabase Edge Functions.
Prerequisites
To get the most out of this guide, you’ll need to:
Make sure you have the latest version of the Supabase CLI installed.
1. Create Supabase function
Create a new function locally:
2. Edit the handler function
Paste the following code into the index.ts
file:
index.ts
3. Deploy and send email
Run function locally:
Deploy function to Supabase:
Open the endpoint URL to send an email:
4. Try it yourself
Supabase Edge Functions Example
See the full source code.
Was this page helpful?