Email Delivery Problems
Troubleshoot email sending failures.
Emails Not Sendingβ
Check SMTP configuration:
MAIL_FROM_ADDRESS=noreply@example.com
MAIL_HOST=smtp.example.com
MAIL_PORT=587
MAIL_USERNAME=your-username
MAIL_PASSWORD=your-password
Connection Timeoutβ
Symptom: ECONNREFUSED or ETIMEDOUT
Fixes:
- Verify SMTP host and port
- Check firewall rules allow outbound port 587/465
- Try port 465 (SSL) vs 587 (TLS)
Authentication Failedβ
Fixes:
- Check username/password
- For Gmail: enable "Less secure app access" or use App Passwords
- For Office 365: use OAuth2 app registration
Custom SMTP Per Organizationβ
Organizations can configure separate SMTP via Settings β Custom SMTP. See Custom SMTP.
Testing Emailβ
Use a test service like Mailtrap during development:
MAIL_HOST=sandbox.smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=your-mailtrap-user
MAIL_PASSWORD=your-mailtrap-pass
Related Pagesβ
- Email Template Endpoints β email API
- Custom SMTP β per-org SMTP