Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install djrill

How to install djrill

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install djrill
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1.2
0.6.0Never BuiltWhy not?
0.1.2 Available View build log
0.1.1 Available View build log
Windows (64-bit)
0.1.1
0.6.0Never BuiltWhy not?
0.1.1 Available View build log
Mac OS X (10.5+)
0.1.2
0.6.0Never BuiltWhy not?
0.1.2 Available View build log
0.1.1 Available View build log
Linux (32-bit)
0.1.2
0.6.0Never BuiltWhy not?
0.1.2 Available View build log
0.1.1 Available View build log
Linux (64-bit)
0.6.0 Available View build log
0.1.2 Available View build log
0.1.1 Available View build log
0.6.0 Available View build log
 
License
BSD License
Dependencies
Lastest release
version 0.6.0 on Sep 20th, 2013

Djrill integrates the Mandrill transactional email service into Django.

In general, Djrill "just works" with Django's built-in django.core.mail package. It includes:

  • Support for HTML, attachments, extra headers, and other features of Django's built-in email
  • Mandrill-specific extensions like tags, metadata, tracking, and MailChimp templates
  • Optional support for Mandrill inbound email and other webhook notifications, via Django signals
  • An optional Django admin interface

Djrill is released under the BSD license. It is tested against Django 1.3, 1.4, and 1.5 (including Python 3 support with Django 1.5).

build status on Travis-CI

Resources

Djrill 1-2-3

  1. Install Djrill from PyPI:

    System Message: ERROR/3 (<string>, line 59)

    Unknown directive type "code-block".

    .. code-block:: console
    
         $ pip install djrill
    
    
    
  2. Edit your project's settings.py:

    System Message: ERROR/3 (<string>, line 66)

    Unknown directive type "code-block".

    .. code-block:: python
    
         INSTALLED_APPS = (
             ...
             "djrill"
         )
    
         MANDRILL_API_KEY = "<your Mandrill key>"
         EMAIL_BACKEND = "djrill.mail.backends.djrill.DjrillBackend"
    
    
    
  3. Now the regular Django email functions will send through Mandrill:

    System Message: ERROR/3 (<string>, line 80)

    Unknown directive type "code-block".

    .. code-block:: python
    
         from django.core.mail import send_mail
    
         send_mail("It works!", "This will get sent through Mandrill",
             "Djrill Sender <djrill@example.com>", ["to@example.com"])
    
    
    

    You could send an HTML message, complete with custom Mandrill tags and metadata:

    System Message: ERROR/3 (<string>, line 90)

    Unknown directive type "code-block".

    .. code-block:: python
    
         from django.core.mail import EmailMultiAlternatives
    
         msg = EmailMultiAlternatives(
             subject="Djrill Message",
             body="This is the text email body",
             from_email="Djrill Sender <djrill@example.com>",
             to=["Recipient One <someone@example.com>", "another.person@example.com"],
             headers={'Reply-To': "Service <support@example.com>"} # optional extra headers
         )
         msg.attach_alternative("<p>This is the HTML email body</p>", "text/html")
    
         # Optional Mandrill-specific extensions:
         msg.tags = ["one tag", "two tag", "red tag", "blue tag"]
         msg.metadata = {'user_id': "8675309"}
    
         # Send it:
         msg.send()
    
    

    (Be sure to use a from_email that's in one of your Mandrill approved sending domains, or the message won't get sent.)

See the full documentation for more features and options.

Subscribe to package updates

Last updated Sep 20th, 2013

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.