Skip to content

Commit

Permalink
Updated docs to check for existence of django-mailer in INSTALLED_APP…
Browse files Browse the repository at this point in the history
…S setting

git-svn-id: http://django-mailer.googlecode.com/svn/trunk@59 09d42984-cf36-0410-8cf8-11b756d0386d
  • Loading branch information
jezdez committed Jan 21, 2009
1 parent 45f1527 commit 877a858
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/usage.txt
Expand Up @@ -15,9 +15,10 @@ Because django-mailer currently uses the same function signature as Django's
core mail support you can do the following in your code::

# favour django-mailer but fall back to django.core.mail
try:
form django.conf import settings
if "mailer" in settings.INSTALLED_APPS:
from mailer import send_mail
except ImportError:
else:
from django.core.mail import send_mail

and then just call send_mail like you normally would in Django::
Expand Down

0 comments on commit 877a858

Please sign in to comment.