Browse files

use django.core.mail over mailer (using django-mailer 0.2a1+ supports…

… e-mail backends)
  • Loading branch information...
1 parent 879a0c7 commit 2be9a5a89254bbc8aa475170fd6bcd8a01e5924b @brosner brosner committed Sep 10, 2010
Showing with 1 addition and 5 deletions.
  1. +1 −5 notification/
@@ -8,6 +8,7 @@
from django.db import models
from django.db.models.query import QuerySet
from django.conf import settings
+from django.core.mail import send_mail
from django.core.urlresolvers import reverse
from django.template import Context
from django.template.loader import render_to_string
@@ -24,11 +25,6 @@
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ugettext, get_language, activate
-# favour django-mailer but fall back to django.core.mail
-if 'mailer' in settings.INSTALLED_APPS:
- from mailer import send_mail
- from django.core.mail import send_mail
QUEUE_ALL = getattr(settings, "NOTIFICATION_QUEUE_ALL", False)

0 comments on commit 2be9a5a

Please sign in to comment.