Skip to main content

Django MarkDown Mail

Project description

Django MarkDown Mail

PyPI version Build Status Coverage Status Maintainability

Write your email in markdown, and send them in txt & html.

Requirements

Install

pip install dmdm

Usage

This replaces django's django.core.email.send_mail, but the mail will have an html alternative rendered from the text part with markdown. You can also provide a custon css and even images (that will be inlined) located in image_root.

If you want to write your markdown in a template, just put the name of the template in message and add a context (which can be {}) and eventually a request.

send_mail(subject, message, from_email, recipient_list, context=None, request=None, fail_silently=False, css=None,
          image_root='.', auth_user=None, auth_password=None, connection=None)

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

dmdm-1.2.0.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

dmdm-1.2.0-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

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