I tried to enable the email functionality of edx, and I followed these steps.
To get the emails working, all you have to do is the following,
Go to cms\envs\common.py
Go to the email portion. Should start with a comment, # Email.
Change EMAIL_BACKEND to 'django.core.mail.backends.smtp.EmailBackend'
Change the DEFAULT_FROM_EMAIL to the email you want to use. Similarly,
for DEFAULT_FEEDBACK_EMAIL and SERVER_EMAIL
Set EMAIL_HOST to the host of your choice. (e.g - 'smtp.google.com' for Gmail.)
Set EMAIL_HOST_USER to your email id and EMAIL_HOST_PASSWORD to your password.
Set EMAIL_PORT to the port your server uses (587 for Gmail.)
Set EMAIL_USE_TLS to True or False according to your server. (True for Gmail.)
However, when I tried to make a test like this:
>>> from django.core.mail import EmailMessage>>> email = EmailMessage('Hello', 'World', to=['youremail@somewhere.com'])>>> email.send()
the error occured:
Traceback (most recent call last): File "<stdin>", line 1, in <moduleImportError: No module named django.core.mail
I'm a beginner and I've no idea about how to solve this. I've tried to search for solution on the internet and on the websites of Django and edx, but I still don't even have a clue. Could anyone help me with this please? Much appreciate.