Email invites and notifications
I'm trying to set up and send out email app invites and notification emails in bolt.new ai and supabase using brevo smtp. My emails are neither being sent nor received. Where in the Supabase dashboard can I investigate--where can I find the logs? Any help with setting up email invites and notifications would be much appreciated.
14 Replies
Are you talking the Supabase built in auth emails for signup/signin? If so then in the Auth logs.
If you are sending your own emails that would totally be up to you and whatever method you use to send them (EDGE functions, server). That would have nothing to do with Supabase but "kicking" off your code somehow.
Hi @garyaustin. Not Supabase built in auth email. We want to do two things: invite users via email to join our app, and send reminder email notifications to our users. Re: the email invites, the following works: in front-end, user can put in email address, send out the invite, gets confirmation of email sent; in supabase, an entry is created with a sent status, but the invitee doesn't receive the email invite.
OK...
What about Supabase are thinking is not working with this?
Supabase has no API for sending emails except for built in Auth.
understood. we're trying to get supabase to send email invites and notifications using brevo smtp and it's not working. need help how to set up correctly.
How are you calling Brevo?
You said these are not the built in auth emails. And I don't mean the built in SMTP but ones for auth.signUp() auth.signInWithOtp and the like. If your are not doing an auth call then you have to write code to call Brevo to send your own email. There is nothing in Supabase to do that.
You said these are not the built in auth emails. And I don't mean the built in SMTP but ones for auth.signUp() auth.signInWithOtp and the like. If your are not doing an auth call then you have to write code to call Brevo to send your own email. There is nothing in Supabase to do that.
just to confirm this has to be set up in brevo, and then email invite will be sent?
What email invite?
the email invite we generate at the front-end
Show some code please. I don't know what that means unless you are calling supabase.auth.signUp() or similar.
How are you generating an email invite?
https://supabase.com/docs/guides/auth/auth-email-passwordless?queryGroups=language&language=js
This and a few other sections around show email logins with Supabase.
Passwordless email logins | Supabase Docs
Email logins using Magic Links or One-Time Passwords (OTPs)
user sign-up with email confirmation is working and is not the issue. front-end developed in bolt.new ai with supabase database. the invite new users template is filled out in the front-end and when send is clicked, the desired result is that invitee receives the email invitation. any idea/guidance on how we implement this, given we've configured brevo smtp in supabase to send email.
That is a totally separate thing you have to get that form input to a server or edge function to call Brevo on your own to send other emails. There is no way to send that thru Supabase's connection to Brevo.
thanks for the advice. have you used brevo before?
I use Brevo both for Supabase auth and for my own edge function to email pdfs.