Configure SMTP for outbound emails

To configure outbound email, follow these steps:

Edit the /opt/bitnami/apps/erpnext/htdocs/frappe-bench/sites/erpnext/site_config.json file. Add or update the SMTP configuration in the file. Here is an example of how to configure a Gmail account. Replace the DB_PASSWORD placeholder with the correct database password and the USERNAME and PASSWORD placeholders with your Gmail account username and password respectively.

Your file should look like this:

    "db_name": "bitnami_erpnext",
    "db_password": "DB_PASSWORD",
    "mail_server": "smtp.gmail.com",
    "mail_login": "USERNAME@gmail.com",
    "mail_password": "PASSWORD",
    "use_ssl": 1,
    "mail_port": 587,
    "auto_email_id": "USERNAME@gmail.com"

NOTE: Remember to use double quotes around the values and a comma after every line except the last one. All the parameters should be enclosed between curly braces as shown above.

To configure the application to use other third-party SMTP services for outgoing email, such as SendGrid, refer to the FAQ.

NOTE: If you are using Gmail as the outbound email server and have experienced issues trying to send emails correctly, check the Gmail SMTP troubleshooting page to learn the causes of these issues and how to solve them.

Last modification January 18, 2019