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 django-emailmgr

How to install django-emailmgr

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install django-emailmgr
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.9 Available View build log
0.6 Available View build log
0.4 Available View build log
0.3 Available View build log
0.1 Available View build log
Windows (64-bit)
0.9 Available View build log
0.6 Available View build log
0.4 Available View build log
0.3 Available View build log
0.1 Available View build log
Mac OS X (10.5+)
0.9 Available View build log
0.6 Available View build log
0.4 Available View build log
0.3 Available View build log
0.1 Available View build log
Linux (32-bit)
0.9 Available View build log
0.6 Available View build log
0.4 Available View build log
0.3 Available View build log
0.1 Available View build log
Linux (64-bit)
0.9 Available View build log
0.6 Available View build log
0.4 Available View build log
0.3 Available View build log
0.1 Available View build log
Web
 
Author
Imports
Lastest release
version 0.9 on Dec 9th, 2011

django-emailmgr

Django Email Manager (emailmgr) is an application that helps with post-registration email management". You can associate multiple email addresses to a single Django User.

This application comes into the picture only after a user has been created, activated and logged in.

If your requirements is for email management prior to user registration please take a look at django-registration or django-email-confirmation.

This application was inspired by bitbucket.org's email management system as well as the mentioned applications.

Current Features:
Assumption:
    • Django user has been created * - Either via proper registration and activation or via the admin interface or scripts
    • This application first looks for its templates in: EMAIL_MGR_TEMPLATE_PATH, then it looks for <template_dir>/emailmgr/ * - This way, projects can place the required templates at a location of their choice

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

      Unexpected indentation.

      relative to the <tempalate_dir> of course

    • Three templates are found in the template directory as stated above * - email subject template - emailmgr_activation_subject.txt

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

      Unexpected indentation.

        • extra context: current_site

      System Message: WARNING/2 (<string>, line 29)

      Block quote ends without a blank line; unexpected unindent.

        • email message body template - emailmgr_activation_message.txt * - extra context: current_site, activate_url & user
        • email list & manipulation template - emailmgr_email_list.html * - extra context: emails_list and add_email_form

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

          Unexpected indentation.

            • email_list includes all emails for this users * - sorted by:

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

              Unexpected indentation.

              1. primary - set directly via django or by emailmgr
              2. activated - confirmed emails and can be set primary

              System Message: WARNING/2 (<string>, line 37)

              Enumerated list ends without a blank line; unexpected unindent.

              3. not activated but activation email sent 5. not activated and activation email not sent

            • add_email_form is a form for adding a new email address to a user
  1. This app latches on the post_save signals for (user) and execute the following:
    1. Creates an email address object with the following attributes
        • email = user.email (if not blank)
        • is_active = True
        • is_primary = True
        • is_activation_sent = Don't care
        • identifier = a random string (used for activation)
        • Note: user login is not required
        • Note: email is only created if user has a valid email address
        • Note: this email is automatically considered as primary and activation is skipped
  2. Latch on the post_delete signals on (user) and execute the following:
    1. Deletes all email addresses associated with the (just) deleted user
  3. Provides URL to:
    1. Adds an email address to the logged in user's account:
    2. Deletes an email address from a user account
    3. Sends activation link for a newly added email address (sendto = user's primary email address)
    4. Activates an email address when user clicks on an activation link
    5. Makes an activated email address the primary email
  4. More to come ... patches & enhancements are welcomed (http://github.com/un33k/django-emailmgr)

Usage

  1. Install django-emailmgr:
    • _ Make sure you have python 2.6+ and can install from pypi
      1. easy_install django-emailmgr

      2. pip install django-emailmgr

      3. git clone http://github.com/un33k/django-emailmgr
        1. cd django-emailmgr
        2. run python setup.py
      4. wget https://github.com/un33k/django-emailmgr/zipball/master
        1. unzip the downloaded file
        2. cd into django-emailmgr directory
        3. run python setup.py
    • _ Stick "emailmgr" in INSTALLED_APPS, right after all other Django specific Apps

    • _ Follow the instruction in the Current Features at the top of this file for usage.

    • _ Use the templates in test directory as an example to create your own templates

    • _ Include this application's urls or create your own urls for this application

    • _ Run syncdb and enjoy

ToDo

clean up README add more goodies

Subscribe to package updates

Last updated Dec 9th, 2011

Download Stats

Last month:3

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.