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.



pip install dmdm


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

from dmdm import send_mail

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, reply_to=None)

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, '', from_email, recipient_list, {'template_variable': 'value'})

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
dmdm-1.4.1-py3-none-any.whl (3.5 kB) Copy SHA256 hash SHA256 Wheel py3
dmdm-1.4.1.tar.gz (2.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page