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
-----------
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
------------
https://pypi.python.org/pypi/Envelopes/0.4
http://pythonhosted.org/Markdown/reference.html#using-markdown-as-a-python-library
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
============
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
-----------
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
------------
https://pypi.python.org/pypi/Envelopes/0.4
http://pythonhosted.org/Markdown/reference.html#using-markdown-as-a-python-library
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
markdownmail-0.2.1.tar.gz
(3.1 kB
view details)
File details
Details for the file markdownmail-0.2.1.tar.gz.
File metadata
- Download URL: markdownmail-0.2.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
551bc8cd38a7b2a0894546055f9307184ec9532f91b519d2f83aecb6333a3ab5
|
|
| MD5 |
8aebbd0b82103d02f76e8d42e674aa59
|
|
| BLAKE2b-256 |
a7259f48aa1841bd6098af5984fc3039f3d0e426d3f10dafbb9a689c376c7d56
|