First time here? Check out the FAQ!
1

Can askbot use sendmail instead of SMTP

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?

Evgeny's avatar
13.2k
Evgeny
updated 2010-10-26 14:51:38 -0500
andrewv's avatar
21
andrewv
asked 2010-10-26 14:43:00 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

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.

Evgeny's avatar
13.2k
Evgeny
updated 2010-10-26 15:01:08 -0500, answered 2010-10-26 14:57:26 -0500
edit flag offensive 0 remove flag delete link

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's avatar andrewv (2010-10-26 15:06:13 -0500) edit
actually there doesn't seem to be anything requiring 1.2 in that snippet.
Evgeny's avatar Evgeny (2010-10-26 15:12:54 -0500) 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's avatar andrewv (2010-10-26 15:19:31 -0500) 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's avatar Evgeny (2010-10-26 15:23:10 -0500) edit
Thanks, that got it to work.
andrewv's avatar andrewv (2010-10-26 16:00:46 -0500) edit
add a comment see more comments