Metadata-Version: 2.0
Name: markdownmail
Version: 0.3.0
Summary: E-mail with text and html content provided with markdown
Home-page: http://hg.markdownmail.yaal.fr
Author: Yaal Team
Author-email: contact@yaal.fr
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Requires-Dist: Envelopes (==0.4)
Requires-Dist: Markdown (==2.6.6)

MarkdownMail
============

Purpose
-------

Send e-mails with generated html content.

The content has to be written in Markdown syntax. The text part of the e-mail
will be filled verbatim; the html part will be a converted HTML from the
Markdown content.


Basic Usage
-----------

.. code:: python

    import markdownmail

    CONTENT = u"""
    SPAMS AND EGGS
    ==============

    This is a demo with a list:

    1. Spam
    2. Second spam
    3. ...and eggs
    """

    email = markdownmail.MarkdownMail(
        from_addr=(u'alice@example.com', u'Alice'),
        to_addr=(u'bob@example.com', u'Bob'),
        subject=u'MarkdownMail demo',
        content=CONTENT
    )

    email.send('localhost')


Content must be unicode.


Useful links
------------

Envelopes library: https://pypi.python.org/pypi/Envelopes/0.4

Markdown syntax: https://daringfireball.net/projects/markdown/syntax


Tests
-----

Tox must be installed on the operating system before executing the tests.
Execute them with:

``$ tox``

or

``$ make check``



