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?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
updated 14 years ago
andrewv's avatar
21
andrewv
asked 14 years ago

Comments

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
updated 14 years ago, answered 14 years ago
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 (14 years ago)
actually there doesn't seem to be anything requiring 1.2 in that snippet.
Evgeny's avatar Evgeny (14 years ago)
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 (14 years ago)
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 (14 years ago)
Thanks, that got it to work.
andrewv's avatar andrewv (14 years ago)
see more comments