Ask Your Question
1

how should email be configured to overcome "/usr/local/lib/python2.6/dist-packages/askbot/utils/mail.py TIME: 2011-02-15 15:10:25,261 MSG: mail.py:send_mail:48 please run connect() first"?

asked 2011-02-15 18:09:37 -0500

tfoote gravatar image tfoote
161 5 3 13

updated 2011-02-15 18:32:55 -0500

Evgeny gravatar image Evgeny flag of Chile
11074 50 84 182
http://askbot.org/

I am getting this error in my askbot.log "/usr/local/lib/python2.6/dist-packages/askbot/utils/mail.py TIME: 2011-02-15 15:10:25,261 MSG: mail.py:send_mail:48 please run connect() first"

I'm running django 1.1.2 on Maverick.

I have the following email settings: {{{

mail server settings

SERVER_EMAIL = 'root@answers.ros.org' DEFAULT_FROM_EMAIL = 'root@answers.ros.org' EMAIL_HOST_USER = '' EMAIL_HOST_PASSWORD = '' EMAIL_SUBJECT_PREFIX = '' EMAIL_HOST='localhost' EMAIL_PORT='25' EMAIL_USE_TLS=False EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' }}}

delete close flag offensive retag edit

Comments

btw - there is a code formatting button in the editor toolbar. Something you'll probably need to teach your users about too. Evgeny ( 2011-02-15 18:23:07 -0500 )edit
A couple of questions: When do you get this error - at what operation on the forum? Do you see error 500 screen or on-screen debug traceback - or is it part of the error log file? Evgeny ( 2011-02-15 18:27:37 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2011-02-15 18:21:48 -0500

Evgeny gravatar image Evgeny flag of Chile
11074 50 84 182
http://askbot.org/

updated 2011-02-15 18:55:55 -0500

Your settings look right, but the mail server must be running and accept those credentials.

Sorry, I am not an expert in mailserver configuration - hope that someone else helps.

My settings are as follows:

SERVER_EMAIL = ''
DEFAULT_FROM_EMAIL = 'askbot@askbot.org'
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_SUBJECT_PREFIX = '[ASKBOT] '
EMAIL_HOST='askbot.org'
EMAIL_PORT='25'
EMAIL_USE_TLS=False
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'

But I might have missed something, the difference I see with your settings is that you have "localhost" and I have domain name in the EMAIL_HOST setting.

link publish delete flag offensive edit

Comments

Changing the last line to match fixed it. Thanks tfoote ( 2011-02-15 18:53:35 -0500 )edit
Ooopss, sorry the last line I had is a mistake! Evgeny ( 2011-02-15 18:54:33 -0500 )edit
should be smtp backend - locmem backend will cause email never be sent. I think you have an issue with the mailserver. Evgeny ( 2011-02-15 18:57:04 -0500 )edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

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
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

Asked: 2011-02-15 18:09:37 -0500

Seen: 322 times

Last updated: Feb 15 '11