Skip to content

Send and track email from Supabase / PostgreSQL using a Transactional Email Provider

Notifications You must be signed in to change notification settings

burggraf/supabase-mailer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

supabase-mailer

Send and track email from Supabase / PostgreSQL using a Transactional Email Provider (Mailgun, Sendgrid, Sendinblue, Mailjet, Mailersend)

Features

  • Send an email message using the API of a Transactional Email Provider
  • Create and store an outgoing email messages in a PostgreSQL table
  • Send a message from the messages table using the API of your selected mail provider
  • Webooks can track the status of your messages and update your messages table based on various events
    • Mailgun
      • Mailgun webhooks can be set up automatically using their API -- just call the PostgreSQL setup function
      • Mailgun events:
        • temporary_fail
        • permanent_fail
        • delivered
        • opened
        • clicked
        • complained
        • unsubscribed
    • Other providers coming soon...

Requirements

  • Supabase account (free tier is fine)
    • Sending messages should work with any PostgreSQL database (no Supabase account required)
    • Webhooks require a Supabase account so the webhooks have a server (Postgrest) to post event messages to
  • A Transactional Email Provider account (most have a free tier available)
    • supported providers: Mailgun, Sendgrid, Sendinblue, Mailjet

Setup for Mail Providers:

See: Mailgun Setup

See: Mailjet Setup

See: Sendgrid Setup

See: Sendinblue Setup

See: Mailersend Setup

About

Send and track email from Supabase / PostgreSQL using a Transactional Email Provider

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published