Configure SMTP for outbound emails
Custom SMTP account or Gmail
Follow these steps:
Log in to the server console.
Navigate to the /opt/bitnami/apps/edx/conf directory.
Edit the files lms.env.json and cms.env.json and modify the lines below. For example, for a Gmail account, use the settings below. Replace USERNAME with your Gmail account username.
"EMAIL_HOST": "smtp.gmail.com", "EMAIL_PORT": 587, "EMAIL_USE_TLS": true, "DEFAULT_FROM_EMAIL": "USERNAME@gmail.com",
Add the credentials to the lms.auth.json and cms.auth.json files. Replace USERNAME and PASSWORD with your Gmail account username and password respectively.
"EMAIL_HOST": "smtp.gmail.com", "EMAIL_PORT": 587, "EMAIL_USE_TLS": true, "EMAIL_HOST_USER": "USERNAME@gmail.com", "EMAIL_HOST_PASSWORD": "PASSWORD",
Restart the Apache server to load the changes.
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.