Askbot not sending email
Just installed Askbot, but when new user register, email are not been sent for validation. The outgoing mail config section in settings.py are shown below:
#outgoing mail server settings SERVER_EMAIL = 'smtp.webfaction.com' DEFAULT_FROM_EMAIL = 'xyz@linuxbsdos.com.com' EMAIL_HOST_USER = 'cmail' EMAIL_HOST_PASSWORD = 'xtvwedcv' EMAIL_SUBJECT_PREFIX = 'Automated Message from LinuxBSDos.com' EMAIL_HOST='smtp.webfaction.com' EMAIL_PORT='587' EMAIL_USE_TLS=True # was False EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
What else do I need to set to get it to send email on user registration?
Suggestion:
How about a test email send feature from the UI, as it is on OSQA?
Comments
The
SERVER_EMAIL
setting is incorrect - an email address is expected there, maybe that's the issue. Also maybe you don't have mailbox set up at webfaction or credentials are invalid. The UI for email testing is a good idea.But if an email is expected at SERVER_EMAIL, will that be the same as the value of DEFAULT_FROM_EMAIL ? Btw, there is a mailbox set up and the email credentials are correct. In any case, I'll test it with the value of SERVER_EMAIL set to the same as DEFAULT_FROM_EMAIL and see if it works. And thanks for replying.
It can be any valid email address, does not matter which exactly, but better match the domain name to the mail server domain, otherwise your messages can be filtered out as spam.
I just set both email address the same, and, yes, they match the mail servers domain name. Still does not work. Just to be sure, EMAIL_HOST_USER is the name of the mailbox, right?
When I type "python manage.py", I get this output: "Traceback (most recent call last): File "manage.py", line 2, in <module> from django.core.management import execute_manager ImportError: No module named django.core.management." I'm new to django, so not sure what to do here.