Supabase is an open-source Firebase alternative. Start your project with a Postgres database, Authentication, instant APIs, Edge Functions, Realtime subscriptions, and Storage.
You can configure your custom SMTP server to handle the delivery of OTP emails, magic links, user invitations, and more in just a few steps. Here's how to get started:
Step 1: Generate your SMTP credentials
1. Once you've added and verified your domain, navigate to Email > Domains and select your sending domain.
2. Scroll to the SMTP section and click Generate new user.
3. Enter a name for the SMTP user you'll connect to your Supabase project and click Generate user. Copy or download the credentials, as you won't be able to view them again when you close this modal.
Step 2: Configure your Supabase SMTP settings
1. From your project overview in Supabase, navigate to Authentication from the sidebar menu.
2. In the Notifications section, click Emails, then select the SMTP settings tab.
3. Switch on the Enable custom SMTP option.
4. Fill in:
Your Sender details: The sender email address and name you want to use. Note that the domain of your sender email address must match your verified domain
Your SMTP provider settings. This is where you add your MailerSend SMTP credentials:
Host: The MailerSend SMTP server URL smtp.mailersend.net
Port number: Use port 587 where possible. Port 2525 should only be used if you are blocked from using 587
Username: Your SMTP username
Password: Your SMTP password
5. Click Save changes.
Learn more about sending Supabase emails with MailerSend, including testing the integration and basic troubleshooting, in our Supabase integration guide.