Skip to main content

A Django app to sync inbox with Django admin

Project description

ZenMailbox provides functionality to sync inbox with Django admin, thread messages, and reply in threads.

Installation

  1. Install package using pip:

    pip install django-zenmailbox

In order to use ckeditor in html text fields add use this command instead:

pip install django-zenmailbox[ckeditor]

Quick start

  1. Add “zenmailbox” to your INSTALLED_APPS:

    INSTALLED_APPS = [
        ...
        'zenmailbox',
        'ckeditor' # if you installed package with ckeditor extra requirement
    ]
  2. Run python manage.py migrate to create mail models.

  3. Start the development server and visit http://127.0.0.1:8000/admin/zenmailbox/mailbox/ to create mailbox.

  4. Choose created mailbox then use action Fetch mail. It can take a while.

  5. Setup zenmailbox.mailbox_manager.fetch_new_mail calling periodically (celerybeat, cron etc)

Settings

To change reply template place it under zenmailbox/reply.html

Django settings entries:

ZENMAILBOX_ATTACHMENTS_FOLDER = os.path.join(BASE_DIR, 'attachments')
ZENMAILBOX_ATTACHMENT_PATH_FORMAT = '{mailbox.id}/{folder.id}/{mail.id}/{attachment.filename}'
ZENMAILBOX_CKEDITOR_SETTINGS = "default"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-zenmailbox-0.0.2.tar.gz (11.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page