Send Emails in Edge Functions

Sdílet
Vložit
  • čas přidán 4. 08. 2024
  • ​‪@resendlabs‬ is the Email API for developers and allows us to send Emails from our custom domains both with Supabase Auth and in Edge Functions.
    Conveniently connect your Supabase account to Resend using their integration[0] to automatically send auth emails from your own domains. Additionally use their API in Edge Functions to automatically send emails based on Database Webhooks[1].
    [0] supabase.com/partners/integra...
    [1] supabase.com/docs/guides/data...
    - Find the code: github.com/thorwebdev/edgy-ed...
    - Read the docs: resend.com/docs/send-with-sup...
    🎙️ Presented by Thor Schaeff (@thorwebdev go.thor.bio/x)
    Chapters
    00:00 Intro to Resend.com
    00:17 Connect Supabase Auth to Resend
    01:10 Configure a custom domain with Resend
    01:59 Set up custom SMTO for Supabase Auth with Resend
    03:15 Send an invitation email with Supabase Auth and Resend
    04:34 Send Emails in Serverless Edge Functions
    06:25 Generate TypeScript types for the auth schema
    08:10 Handle Database Webhook payload
    09:25 Make fetch request to Resend API to send email
    12:33 Set up Resend API key and store as secret
    14:21 Deploy the Supabase Edge Function
    14:50 Configure Auth Database Webhook
    15:40 Automatically send email when user is deleted
    16:30 Automatically send email when new user signs up
  • Věda a technologie

Komentáře • 19

  • @RegalWK
    @RegalWK Před 10 měsíci +3

    Cool! Resend FTW, I'm glad you have integration :)

  • @zeno_rocha
    @zeno_rocha Před 10 měsíci +1

    What an awesome video!

  • @appstuff6565
    @appstuff6565 Před 2 měsíci

    Hey Supabase thanks for this, do you plan to do a video on integration with Amazon SES?

  • @wata1991
    @wata1991 Před 10 měsíci

    can we do similar logic of sending emails with regular serverless functions with resend?

  • @resendlabs
    @resendlabs Před 10 měsíci +1

    💚💚💚

  • @rtorcato
    @rtorcato Před 10 měsíci +2

    Can you do a video on how to do custom auth emails using React email?

  • @user-pr5rk8ux1n
    @user-pr5rk8ux1n Před 4 měsíci +1

    I have added domain and clicked on last button i.e configure smtp supabase. after clicked button still loading

  • @eduardovega8851
    @eduardovega8851 Před 8 měsíci +1

    How do I choose my email domain. Do I have to buy one or is there some I could use for free? Thanks everyone

  • @fivestech5550
    @fivestech5550 Před 10 měsíci +2

    Good video!
    Could you teach me if you know how to use react-email with Edge Functions?
    Deno support React?

    • @thorwebdev
      @thorwebdev Před 10 měsíci

      react-email is not yet supported on Deno, but the @resendlabs team is actively working on this, so shouldn't be too long!

  • @ps3301
    @ps3301 Před 10 měsíci

    Possible to do a video on using local llama2 to build a chatbot possibly with genoss api endpoint with supabase ?

    • @Supabase
      @Supabase  Před 9 měsíci

      You might find this useful: github.com/ykhli/local-ai-stack

  • @ngamsomset
    @ngamsomset Před 4 měsíci

    Is it possible to send a series of email based on a given timeframe? say 1 email every 24 hours?

  • @Supabase
    @Supabase  Před 7 měsíci

    Read the docs here: resend.com/docs/send-with-supabase-edge-functions

  • @KangasniemiJerri
    @KangasniemiJerri Před 10 měsíci +2

    Drink some water, my dude. Great video with great info, but the constant tongue-clicking from what I assume is dry mouth got seriously distracting.

    • @thorwebdev
      @thorwebdev Před 10 měsíci +3

      Ha, I never even noticed that, thanks for pointing it out, will try and pay more attention to it 👍 For now, let's call this ASMR 😅

    • @thorwebdev
      @thorwebdev Před 10 měsíci +1

      Also, I only saw your comment after uploading today's video, sorry, you might not like it 🤣

    • @KangasniemiJerri
      @KangasniemiJerri Před 10 měsíci +1

      @thorwebdev I enjoy all your content, don't you worry about that. 😉

    • @Fishamble
      @Fishamble Před 2 měsíci

      Lord, people will complain about anything.