E-mail with text and html content provided with markdown
Project description
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
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file markdownmail-0.3.0.tar.gz.
File metadata
- Download URL: markdownmail-0.3.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7aa183355cd215bd8409b856967ef4367e78864faa0175e31f472a77d74f09c9
|
|
| MD5 |
ce007237132c7a8da6f02db5408a5512
|
|
| BLAKE2b-256 |
92b2c99260c4ddab6d43b1c5c12dff09046d65b52e2b35cf46c7d618e84f9088
|
File details
Details for the file markdownmail-0.3.0-py2.py3-none-any.whl.
File metadata
- Download URL: markdownmail-0.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c8da44e2778fb6d5a49d1ed5c12ee3c56d9e4bb76bbd288f931ed9c1d69353d
|
|
| MD5 |
bf1228e7aa846b36d5fc5a7322166030
|
|
| BLAKE2b-256 |
1398de045a40a6cd228d952e08f3cea77e9efec1acbda8c9190d97c483c70f3c
|