How do I configure GMail SMTP with Appsmith

Is there a starter configuration one can use to get up and running with GMail’s SMTP server with Appsmith? The idea is to have the Appsmith server use GMail’s SMTP server to send emails for things like inviting a user to an organization, sending the reset password link etc.

Here’s a sample configuration as a starting point:

# ***** Email **********
APPSMITH_MAIL_ENABLED=true
APPSMITH_MAIL_FROM=xxx@gmail.com
APPSMITH_REPLY_TO=xxx@gmail.com
APPSMITH_MAIL_HOST=smtp.gmail.com
APPSMITH_MAIL_PORT=587
# ***** Set to true if providing a TLS port ******
APPSMITH_MAIL_SMTP_TLS_ENABLED=true
APPSMITH_MAIL_USERNAME=xxx@gmail.com
APPSMITH_MAIL_PASSWORD=xxx
APPSMITH_MAIL_SMTP_AUTH=true
# ******************************

If you’re running with the Docker setup, installed using the official install.sh script, you should find these variables (with blank values) in the docker.env file.

:information_source: After you set the values similar to the above, remember to uncomment them (remove the leading # characters).

Reply here to @sharat87, for further questions.