Ask Your Question
1

Can askbot use sendmail instead of SMTP

asked 2010-10-26 14:43:00 -0600

andrewv gravatar image

updated 2010-10-26 14:51:38 -0600

Evgeny gravatar image

I am setting up an askbot instance and would like to know if its possible to set up askbot with either Django 1.2.x or use an email backend other than SMTP?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2010-10-26 14:57:26 -0600

Evgeny gravatar image

updated 2010-10-26 15:01:08 -0600

My guess is that askbot will work with django 1.2 with no changes, someone tried it already (I have not yet). The reasons askbot is sticking to 1.1 for the time being are that many people still use apps requiring 1.1 and 1.2 is somewhat slower.

I've just looked up this snippet that claims enabling email backend to use sendmail. You won't need to modify any of the askbot code to make use of it or an equivalent custom email backend.

edit flag offensive delete link more

Comments

That snippet requires Django 1.2 or did you mean it should work fine as long as I switch to django 1.2?
andrewv gravatar imageandrewv ( 2010-10-26 15:06:13 -0600 )edit
actually there doesn't seem to be anything requiring 1.2 in that snippet.
Evgeny gravatar imageEvgeny ( 2010-10-26 15:12:54 -0600 )edit
from django.core.mail.backends.base import BaseEmailBackend is new to 1.2. Also after switching to 1.2 I get the following error: ImproperlyConfigured: Error importing middleware askbot.middleware.view_log: "No module named coffin.template" Any ideas?
andrewv gravatar imageandrewv ( 2010-10-26 15:19:31 -0600 )edit
oh I see, then that custom backend can be adapted to 1.1 using the 1.1 facilities. As for your second question - looks like coffin is not in your PYTHONPATH now after you switched to 1.2
Evgeny gravatar imageEvgeny ( 2010-10-26 15:23:10 -0600 )edit
Thanks, that got it to work.
andrewv gravatar imageandrewv ( 2010-10-26 16:00:46 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2010-10-26 14:43:00 -0600

Seen: 295 times

Last updated: Oct 26 '10