Email Services
Recommended services for sending email:| Service | Best For | Free Tier |
|---|---|---|
| Resend | Developer-friendly | 3K/month |
| Postmark | Transactional email | 100/month |
| SendGrid | High volume | 100/day |
| Mailgun | Flexibility | 5K/month |
Setting Up Resend
1. Create Account
- Go to resend.com
- Sign up for free account
- Verify your email
2. Add API Key
- Get API key from Resend dashboard
- Add to Kleap environment variables:
3. Verify Domain (Optional)
For custom from addresses, verify your domain in Resend.4. Send Emails
Common Email Types
Welcome Email
Password Reset
Order Confirmation
Newsletter
Email Templates
HTML Email
React Email Templates
For complex emails, use React Email:Supabase Auth Emails
Supabase Auth includes built-in emails:- Signup confirmation
- Password reset
- Magic link login
- Email change confirmation
Customize Auth Emails
- Go to Supabase Dashboard → Auth → Email Templates
- Customize templates with your branding
- Set your from address
Email Best Practices
Avoid Spam Filters
Use verified domain
Set up SPF, DKIM, and DMARC
Clear from address
Use recognizable sender name
Meaningful subject
Avoid spam trigger words
Include unsubscribe
Required for marketing emails
Rate Limiting
Don’t send too many emails too fast:Error Handling
Email with Queues
For high-volume or reliable email:Using Supabase Edge Functions
Queue Emails in Database
Testing Emails
Development
Use Resend’s test mode or services like:- Mailtrap - Catches all test emails
- Ethereal - Fake SMTP for testing
Check Rendering
Preview emails in different clients:- Litmus - Email testing
- Email on Acid - Rendering tests
Environment Setup
Development
Production
Troubleshooting
Emails not sending
Emails not sending
- Check API key is correct
- Verify environment variable is set
- Check service dashboard for errors
- Verify from address is authorized
Emails going to spam
Emails going to spam
- Set up domain verification
- Check email content for spam triggers
- Use a reputable email service
- Add proper unsubscribe link
Rate limited
Rate limited
- Check your service’s rate limits
- Implement queuing for bulk sends
- Upgrade plan if needed
Supabase Integration
Database for storing email logs

