Skip to main content
By default, Formbricks doesn’t include an SMTP server for sending emails. However, you can easily configure your self-hosted instance to use your own email provider through environment variables.

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:
Additional optional settings:

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:
  1. Edit the docker-compose.yml file and add the SMTP environment variables:
  1. 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:
  1. Check that all required environment variables are set correctly
  2. Verify your SMTP credentials are valid
  3. Ensure your email provider allows sending from the specified MAIL_FROM address
  4. If using Gmail, ensure you’re using an App Password
  5. For secure connections, make sure you’ve set the correct port and SMTP_SECURE_ENABLED value
For additional help, join the conversation on GitHub Discussions.