Skip to main content

Maildocker library for Python

Project description

This library allows you to quickly and easily send emails through Maildocker using Python.


import maildocker

md = maildocker.MaildockerClient(

message = maildocker.Mail(
    mail_from='Maildocker <>',
    to='John Snow <>',
    text='**{{system}}** ({{url}})',
    merge_vars={'system': 'Maildocker', 'url': ''},
        {'name': 'plaintext.txt', 'type': 'text/plain', 'content': 'dHN0'},

http_status, response = md.send(message)

# OR

message = maildocker.Mail()

message.set_from('Maildocker <>')
message.add_to('John Snow <>')
message.set_text('**{{system}}** ({{url}})')
message.add_vars({'system': 'Maildocker', 'url': ''})
    {'name': 'plaintext.txt', 'type': 'text/plain', 'content': 'dHN0'},

http_status, response = md.send(message)

Project details

Download files

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

Files for maildocker, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size maildocker-1.0.1.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page