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 = 'firstname.lastname@example.org' 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?
How about a test email send feature from the UI, as it is on OSQA?
answered 2012-07-08 10:00:49 -0500paulus_almighty
You could test the send mail by changing the EMAIL_BACKEND to a file, or console.
Sorry that there is no better way to test email settings now, but you might do this: on the command line type
python manage.py shell from the same directory where your settings.py file is located. Then type:
from django.core.mail import mail_admins mail_admins('subject line', 'message text')
Then you should get an exception, which might give you some idea of what is not right. You could also consult Webfaction documentation about setting up email with django projects. There is nothing special about askbot in that respect.
Errors are also logged in
log/askbot.log within your project directory if you are using default logging configuration.
The UI for testing email configuration is a very good idea.
One place to test email in askbot is the feedback form, but it will not show you actual errors.
answered 2013-02-19 11:37:47 -0500dishant
I'm running into a similar problem. Using version 0.7.48.
I getting the following error message in the logs whenever askbot is trying to send an email:
[Tue Feb 19 17:16:33 2013] [error] timed out
SERVER_EMAIL = 'email@example.com' DEFAULT_FROM_EMAIL = 'firstname.lastname@example.org' EMAIL_HOST_USER = 'email@example.com' EMAIL_HOST_PASSWORD = 'mypassword' EMAIL_SUBJECT_PREFIX = 'Askbot: ' EMAIL_HOST='smtp.gmail.com' EMAIL_PORT='465' EMAIL_USE_TLS=True EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
NOTE: if there is an exception raised for example an "Internal Server Error", then askbot sends me an email to the address configured in the ADMINS property in the settings.py.
But if I for example try to recover my password then no emails are sent and I get the timeout error message in the logs.
Also, I have confirmed that using a Console or Filebased EMAIL_BACKEND works fine. Only problem is with smtp.
Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.create your Q&A site
Asked: 2012-07-08 05:48:31 -0500
Seen: 279 times
Last updated: Feb 19