SMTP
I'm using Resend and Supabase. I configured a custom SMTP server in Supabase, but my email isn't working. I don't see errors in the logs in Supabase or Resend. Prior to setting up custom SMTP, Supabase was sending confirmation emails, but now it isn't working, even if I turn custom SMTP off. I followed the instructions and think I have the right information for custom settings. I even tried creating a new API key in Resend with full access, but that didn't work. My domain is verified. How can I get my emails working using the Custom SMTP settings in Supabase? Thank you!
15 Replies
If the Auth logs don't have an error then it thinks it was sent without issue.
Have you tried different emails?
Does Resend show if it sent an email?
Many users are using Resend here.
Hi Gary, Thanks for your help! Here's what I see in Auth. Resend is not showing that it sent emails.

Nothing looks wrong there.
Try sending a magic link from the authentication tab.
I'm not sure how to do that. Will that test my SMTP config to see if messages are going to Resend?
It sends a different template and is not using your client so rules that out.
There is no built in test.
Also any chance you disabled confirm email? Then signup would not send an email.

Those settings look okay too.
Did the invite work?
This is the confirm I was referring to.

I just noticed you said you turned off the custom SMTP and it still did not work?
@garyaustin I was able to send a message from Supabase by generating a reset password link. I reviewed that email and ran it through a GPT and it looks like it came directlt from Supabase, not Resend. So, even though I have custom SMTP, Supabase isn't using those settings. Any ideas?
Show your SMTP page with anything secret masked.
But if you have Custom then Supabase on its own will use custom. Otherwise it has to be set to default to use Supabase's own SMTP service.
But there are hooks that can change this if you added them.
I tried using variations of the smtp address and ports, but nothing worked. I created a new API key and gave it full access as well.

Sort of lost track. So no error with Resend. And invite link, or other emails DID not send or they send and you think they are from default SMTP?
If you go back to default SMTP does it work or not? (you can only send 2 or 3 emails before rate limit).
If that works then I would try another provider like Brevo as a test.
If both don't work then contact support if you have not already.
@garyaustin I got it working. There were several factors.
1.The URL configuration was using localhost and I didn't have redirect URL's configured. 2. I think the max amount of emails you can send via Supabase paired with me not knowing that and troubleshooting was a factor. 3. The users were added to Supabase even though I didn't get the confirmation email, so then when I was troubleshooting, the user was already in the system. I had to go delete those users during the troubleshooting process.
Thanks so much for all of your help. I did learn more from your troubleshooting tips and I appreciate it. Hopefully this feedback helps another newby.
I am having the same issue. Trying to do the "Forgot Password" feature. I have Resend for email and Supabase. Using custom SMTP, Resend has told me that I need to put resend in the username and api key in the password. But each time I have saved and come back to it...the username is defaukted to my email and password. I have gone through the whole folders and files in Supabase and there is no where I can do anything. I am not sure if this is the problem. But if I can sort this out...I can see if it some other issue. HELP.