š 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
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 & iPad). Some of these protections are now available