Why Configure SMTP?
Setting up an SMTP server enables important email functionality in Formbricks, including:- Email verification for new accounts
- Password reset emails
- Team member invitation emails
- Survey response notifications
Email Configuration Options
Formbricks uses Nodemailer to send emails and supports various SMTP providers like:- AWS SES
- SendGrid
- Mailgun
- Gmail (for low volume)
- Custom SMTP servers
- Other SMTP providers
Required Environment Variables
To enable email functionality, configure the following environment variables:Enabling Email Features
By default, email verification and password reset features are disabled in Formbricks. To enable these features:Configuration for One-Click Setup
If you’re using the one-click setup with Docker Compose, you can either:- Edit the docker-compose.yml file and add the SMTP environment variables:
- Or during the setup, answer “Yes” when prompted to set up the email service:
Provider-Specific Examples
SendGrid
AWS SES
Gmail
Note: For Gmail, you need to use an App Password if you have 2FA enabled.
Troubleshooting
If you’re experiencing issues with your email configuration:- Check that all required environment variables are set correctly
- Verify your SMTP credentials are valid
- Ensure your email provider allows sending from the specified MAIL_FROM address
- If using Gmail, ensure you’re using an App Password
- For secure connections, make sure you’ve set the correct port and SMTP_SECURE_ENABLED value