šŸ‘‰ 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.
1 Reply
garyaustin
garyaustin•6h ago
Nothing Supabase does that I know of to modify the email html leaving. Either Hostinger or Gmail. Are you using a Gmail client itself? Have you tried another client and another email? You might try this: https://support.google.com/mail/answer/10173182?hl=en#zippy=%2Chow-can-i-tell-if-these-protections-are-being-applied-in-my-account%2Chow-can-i-read-the-message-in-its-original-state
Click-time link protections in third-party email clients - Gmail Help
Because links to malicious websites can be sent in emails, Google adds link protection for all official Gmail clients (web, Android, and iPhone &amp; iPad). Some of these protections are now available

Did you find this page helpful?