© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4mo ago•
11 replies
Atelerix Albiventris

Error 504 when trying to send password reset email - JS Client

I have a website hosted by DailyRazor that connects to Supabase. While the website is in the development, I am running it on my own PC for testing. I've looked at the docs, asked AI, scanned the console output, and verified the database logs. I found nothing strange or helpful. My guess is the issue is incorrect SMTP settings.

I opened a ticket with DailyRazor to get their SMTP settings. I'll put their response in a comment below.

My Supabase SMTP settings are in a comment below.

The JS that gets the email address to send the link to is:
const email = document.getElementById('email').value.trim()
const email = document.getElementById('email').value.trim()


The JS code that tells Supabase to send the email is:
const { error } = await supabase.auth.resetPasswordForEmail(email, { })
const { error } = await supabase.auth.resetPasswordForEmail(email, { })


The HTML code for the body of the page that gets the email address:
<body>
        <header></header>
        <main>
        <form id="reset-form">
            <input type="email" id="email" placeholder="you@example.com" required />
            <button type="submit">Send reset link</button>
        </form>
        <div id="msg"></div>
        </main>
        <footer></footer>
    </body>
<body>
        <header></header>
        <main>
        <form id="reset-form">
            <input type="email" id="email" placeholder="you@example.com" required />
            <button type="submit">Send reset link</button>
        </form>
        <div id="msg"></div>
        </main>
        <footer></footer>
    </body>
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Password reset for email .
SupabaseSSupabase / help-and-questions
2mo ago
reset password email template
SupabaseSSupabase / help-and-questions
3y ago
Send password recovery, or reset password is not sending an email.
SupabaseSSupabase / help-and-questions
3y ago
Supbase Client - Where to catch expired password reset email exceptions?
SupabaseSSupabase / help-and-questions
14mo ago