👉 Email template not working with custom SMTP server (links not clickable in Gmail)
Hey everyone, I could really use some help with my SMTP setup and email templates.
I’m using my own SMTP server from Hostinger, and I’ve already configured everything correctly under Authentication → SMTP Settings in Supabase. The emails are being sent successfully — I receive them in Gmail with no problem.
However, there’s a critical issue: The action buttons in the emails (like “Reset Password” or “Confirm Email”) are not clickable in Gmail. The email arrives, but the <a> link in the HTML template doesn’t behave as an actual link, so users can’t reset their password or confirm their account.
I tried editing the default template to use different tags like {{ .URL }}, {{ .ConfirmationURL }}, and even simplified plain links, but Supabase keeps returning this error when saving the template:
Failed to validate template: Unable to validate spam
This happens no matter what tag I use, even when the HTML is very basic.
So right now I’m stuck — the SMTP connection works fine, but the Supabase template editor won’t let me save a valid version, and the default one makes the links unclickable in Gmail.
Any idea what could be causing this? Could it be something related to the Supabase spam validator or the way Gmail renders the template?
Here’s what I’ve already tried:
Resetting the template to default and re-saving;
Using the .URL, .ConfirmationURL, and .EmailChangeURL placeholders;
Testing plain text versions of the email (no HTML button);
Verifying my Hostinger domain (SPF, DKIM, DMARC all green);
Generating a new SMTP key just in case.
Any help or insight would be really appreciated This is the only thing keeping my authentication flow from working properly.
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.