Better Deliverability
Higher inbox rates than Supabase’s default email service
Custom Domain
Send from your own domain instead of Supabase’s
Email Logs
Track all auth emails in your Unosend dashboard
Prerequisites
Setup Guide
1
Get Your SMTP Credentials
First, get your SMTP credentials from Unosend. Go to API Keys and note your credentials:
| Setting | Value |
|---|---|
| Host | smtp.unosend.co |
| Port | 587 (recommended) |
| Username | unosend |
| Password | Your API Key (un_xxxxxx...) |
2
Configure Supabase SMTP
Open your Supabase project dashboard and navigate to:
Open Supabase Auth Settings →
Project Settings → Authentication → SMTP SettingsEnable Custom SMTP and fill in the following:| Field | Value |
|---|---|
| Sender email | [email protected] |
| Sender name | Your App Name |
| Host | smtp.unosend.co |
| Port | 587 |
| Username | unosend |
| Password | un_your_api_key |
3
Test the Integration
Test your setup by triggering a password reset or sign-up confirmation:
test-auth.ts
4
Customize Email Templates (Optional)
Supabase lets you customize auth email templates. Navigate to:
Authentication → Email TemplatesAvailable templates you can customize:- Confirm signup
- Invite user
- Magic Link
- Change Email Address
- Reset Password
Troubleshooting
Emails not sending
Emails not sending
Verify your domain is verified in Unosend. The sender email must match your verified domain.
Authentication failed
Authentication failed
Double-check your API key in the password field. Make sure you’re using the full key (
un_xxxx...).Connection refused
Connection refused
Try port 465 with SSL instead of port 587 with TLS.