Skip to main content

Supabase Mailofly Quickstart

Supabase provides built-in authentication, but defaults to a strict rate limit of 3 emails per hour on its free built-in email service. By connecting Mailofly as your custom SMTP provider, you get unlimited auth emails, higher deliverability, and real-time open and click tracking.

1. Get Your Mailofly SMTP Credentials

In your Mailofly dashboard, go to SMTP Gateway:
  • Host: smtp.mailofly.com
  • Port: 587
  • Username: Your Mailofly API Key (mf_live_...)
  • Password: Your Mailofly API Key (mf_live_...)

2. Configure Supabase

  1. Open your Supabase Dashboard and select your project.
  2. Navigate to Project Settings > Authentication > SMTP Settings.
  3. Toggle Enable Custom SMTP to ON.
  4. Fill in the fields:
    • Sender email: An address using your verified domain (e.g. auth@yourdomain.com).
    • Sender name: Your application name (e.g. Acme App).
    • Host: smtp.mailofly.com
    • Port: 587
    • Username: mf_live_your_key
    • Password: mf_live_your_key
  5. Click Save.

3. Test the Setup

Trigger a password reset or sign-up confirmation email from your app. Check your Mailofly Logs dashboard to confirm the message was accepted, dispatched, and tracked.