š§š„ Help Needed: Supabase project not using custom templates
Hello,
I have a FREE Supabase account with two projects. Both projects have their own custom email templates for every type (Confirm signup, Invite user, Magic Link, Change Email Address, Reset Password, Reauthentication). The templates have been saved for a month, and their HTML code is nearly identical (only the content and styles differ). Both projects have their own functioning SMTP, and all other settings are exactly the same. ā
One project sends emails correctly using its custom templates. The second project, however, sends the default Supabase emails, as if its personalized templates don't exist.
Could you please help me troubleshoot this issue? š Any guidance would be greatly appreciated.



23 Replies
Try one of your working templates in the system that is not working. This is almost always something in the template can't be handled.
Not sure if errors are logged in the dashboard auth log or not.
You could also try just editing one word in the default template to rule out some odd system issue for that instance.
I used the exact same HTML code that worked in the first project, waited an hour, and that didn't work either.
Try a simple edit then.
Check the log
Or maybe I need to reset the cache in supabase somewhere? Is there such a thing?
No. And does not seem to be a global issue. I just did a 1 word add on invite template and invited from dashboard and the new template was there.
Are you changing all the templates or just one?
I deleted all the code and left an empty message š It arrived empty. So there's definitely something wrong with the code. But it works for one project, but not for another.
No idea.
XD
You'll have to slowly build it up until you hit the issue.
The auth system is the same for all instances.
Ok, thanks for your help. I'll try
ā¤ļø
This is very strange. There shouldn't be a problem with this. Alternatively, the system should return a message that the code is too long and may be considered spam, etc.
You could double check under the infrastructure settings for you auth version and see if they are the same. I've never seen them not the latest.

Did you check the auth log when you get the default template?
There are cases that even with preview working sometimes code "errors" and issues with the template code don't get caught and the default template goes out... which is why I suggested code error.
I don't remember though if users get errors or not in the auth log for it.

That shows one invite going out. Is that the one that worked or sent default template?
its empty mail 'Invite user' wifhout code html
Send your one that defaults back to default and see if that has an error in the log. I just don't remember if it does or not for this case and it would be very difficult to find previous posts on it here.
it's with my HTML code

"function "now" not defined" ?
Do you have the word now in your template code?
I found a probation
I used the 'Now' function
<p class="footer-text">© {{ now.Year }} All rights reserved.</p>
Thanks for the hint to look into the logs
š
š„³
Wonder why it worked on another instance.
I know. Because i used {{ Year }} with 1st project. But its not worked. I delete {{ now.Year }} and {{ Year }} with all templates. Thank You