HOW TO SETUP SMTP FOR EMAIL ON OPEN EDX
Note: I will demostrate this with a gmail account
1. First navigate to and open file: ~/edx-ginkgo.2-2/apps/edx/config/lms.env.json
2. Search the settings below and make sure they look exactly the same
"EMAIL_BACKEND": "django.core.mail.backends.smtp.EmailBackend",
"EMAIL_HOST": "smtp.gmail.com.",
"EMAIL_PORT": 587,
"EMAIL_USE_TLS": true,
3. Save your changes
4. Secondly navigate to and open another file: ~/edx-ginkgo.2-2/apps/edx/config/lms.auth.json
5. Search for the settings below, if it does not exist then add it manually
"EMAIL_HOST_USER": "YourUsernameHere@gmail.com",
"EMAIL_HOST_PASSWORD": "YourPasswordHere",
6. Save your changes
7. Restart services
Note: You need to allow less secure apps access to your gmail. Search google to find out how to do this.
Note Again: If you try sending mail first time it wont work, but then you will get a mail from google that it blocked someone from a accessing account. That someone is you, so open the mail and click on Check Activity the click Yes to tell google you are aware of the login. Thats all google will now allow access to the account.
Hope this helps!!! Regards!!!
1. First navigate to and open file: ~/edx-ginkgo.2-2/apps/edx/config/lms.env.json
2. Search the settings below and make sure they look exactly the same
"EMAIL_BACKEND": "django.core.mail.backends.smtp.EmailBackend",
"EMAIL_HOST": "smtp.gmail.com.",
"EMAIL_PORT": 587,
"EMAIL_USE_TLS": true,
3. Save your changes
4. Secondly navigate to and open another file: ~/edx-ginkgo.2-2/apps/edx/config/lms.auth.json
5. Search for the settings below, if it does not exist then add it manually
"EMAIL_HOST_USER": "YourUsernameHere@gmail.com",
"EMAIL_HOST_PASSWORD": "YourPasswordHere",
6. Save your changes
7. Restart services
Note: You need to allow less secure apps access to your gmail. Search google to find out how to do this.
Note Again: If you try sending mail first time it wont work, but then you will get a mail from google that it blocked someone from a accessing account. That someone is you, so open the mail and click on Check Activity the click Yes to tell google you are aware of the login. Thats all google will now allow access to the account.
Hope this helps!!! Regards!!!
Comments
Post a Comment