Skip to content

Enable confirm email after Signup

AppLaunchKit uses supabase integration of confirming emails to send mail confirmations after signup.

Local setup

In the local setup for supabase, only inbucket is supported and you can use it to confirm the emails.

To enable email confirmation in local setup, follow these steps:

  • Open the config.toml file in the apps/supabase/supabase directory.
  • Find [auth.email] in the file.
  • Change the value of enable_confirmations from false to true.
  • Restart the server by running :
    npm run supabase:restart

Now, you can use the confirm emails feature, and on signup, the email will be sent that you can access at http://localhost:54324/.

Deployed in Supabase Cloud

Supabase Cloud allows custom SMTP server for email verification, and you can setup it in supabase like this:

  • Go to the project dashboard.
  • Select Authentication on the sidebar.
  • Go to Providers in the Configuration section.
  • Click on Email, and make sure it is enabled.
  • Toggle to Confirm Email button to true.
  • Go to the Project Settings on the sidebar.
  • In Configuration tab, click on the Authentication option.
  • Scroll down to find SMTP settings, and enable it.
  • Fill it with your smtp server details.

Now, you can use the confirm emails feature, and on signup, the email will be sent on the email with which the user signed-up.

Note: You need to setup your own custom SMTP server for this to work. If you’re unsure about how to setup your own, you can read more here.