Platform Integration

Supabase + Unosend

Send transactional emails from Supabase Edge Functions. Perfect for authentication flows, notifications, and more.

Features

Everything you need to send emails from Supabase

Edge Functions integration

Database triggers support

Auth email customization

Webhook integration

Real-time notifications

Quick Start

Get up and running in minutes with this code example

Code Example
// supabase/functions/send-email/index.ts
import { serve } from 'https://deno.land/std@0.177.0/http/server.ts';
import { Unosend } from 'npm:@unosend/node';

const unosend = new Unosend(Deno.env.get('UNOSEND_API_KEY')!);

serve(async (req) => {
  const { to, subject, html } = await req.json();

  const { data, error } = await unosend.emails.send({
    from: 'hello@yourdomain.com',
    to,
    subject,
    html,
  });

  if (error) {
    return new Response(JSON.stringify({ error }), {
      status: 400,
      headers: { 'Content-Type': 'application/json' },
    });
  }

  return new Response(JSON.stringify({ data }), {
    headers: { 'Content-Type': 'application/json' },
  });
});

Setup Guide

Follow these steps to integrate Unosend with Supabase

1

Create a Supabase Edge Function

2

Add UNOSEND_API_KEY to your Supabase secrets

3

Import the Unosend SDK using npm: prefix

4

Deploy the function with supabase functions deploy

5

Call the function from your app or database triggers

Why Use Unosend with Supabase?

Serverless email sending

Trigger emails from database events

Customize auth emails

Global edge deployment

Ready to integrate?

Start sending emails from Supabase in under 5 minutes. Free tier includes 5,000 emails/month.