Skip to main content

Visual email builder for Django admin, powered by MailCraft

Project description

django-contentor-email-builder

A visual email builder for Django admin, powered by MailCraft.

Add a drag-and-drop email builder to your Django admin with one pip install. Select users, compose beautiful emails, and send — all from the admin panel.

Quick Start

  1. Install:
pip install django-contentor-email-builder
  1. Add to INSTALLED_APPS:
INSTALLED_APPS = [
    ...
    'django_email_builder',
]
  1. Configure your API key:
EMAIL_BUILDER_API_KEY = 'mc_live_your_key_here'
  1. Done! Go to Django admin → Users → select users → "Send email with Email Builder".

Settings

Setting Required Default Description
EMAIL_BUILDER_API_KEY Yes Your MailCraft API key
EMAIL_BUILDER_VARIABLES No {} Map template variables to User attributes
EMAIL_BUILDER_URL No https://mailcraft.contentor.app Builder URL

Variable Mapping

Map template variables to Django User model attributes:

EMAIL_BUILDER_VARIABLES = {
    'first_name': 'first_name',
    'last_name': 'last_name',
    'email': 'email',
    # Supports dotted paths for related objects:
    'company': 'profile.company_name',
}

Variables are automatically synced to MailCraft on Django startup and become available in the email builder's variable picker.

How It Works

  1. Select users in Django admin's User list
  2. Pick "Send email with Email Builder" from the actions dropdown
  3. Compose your email in the visual builder (or load a saved template)
  4. Click "Send" → review recipients and enter subject line → confirm
  5. Each email is personalized with the user's variables and sent via Django's email backend

Billing

Each personalized email render counts against your MailCraft plan's render quota. Sending to 100 users = 100 renders.

Requirements

  • Django >= 4.2
  • A MailCraft account (sign up)

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_contentor_email_builder-0.2.4.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_contentor_email_builder-0.2.4-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file django_contentor_email_builder-0.2.4.tar.gz.

File metadata

File hashes

Hashes for django_contentor_email_builder-0.2.4.tar.gz
Algorithm Hash digest
SHA256 11b9f03563a9edd40b751e50065bd46555f9c6767633957a0e5eb24b0015fa23
MD5 50bf02b32aea242b840e03c7bcabf96f
BLAKE2b-256 87334c03951a38b7a6e515eea6ba69b7ce9ea5357ee76b0b9d2aaaef75ef3441

See more details on using hashes here.

File details

Details for the file django_contentor_email_builder-0.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for django_contentor_email_builder-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4c57d64777f77f8cb97ad92b8997171aa3c5edf8424c220a3c49000a49b37fec
MD5 8fb5046d30d79af54c6e62899d3f09f9
BLAKE2b-256 5fba343bcd553003c63e1377a7e5ac78d28750cbd6a24b0adc7662c44e0e57b6

See more details on using hashes here.

Supported by

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