Skip to main content

Maildocker-Python

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

Example

import maildocker

md = maildocker.MaildockerClient(
    api_key='0cc175b9c0f1b6a831c',
    api_secret='92eb5ffee6ae2fec3ad'
)

message = maildocker.Mail(
    mail_from='Maildocker <maildocker@ecentry.io>',
    to='John Snow <john.snow@thrones.com>',
    subject='maildocker-python-library',
    text='**{{system}}** ({{url}})',
    merge_vars={'system': 'Maildocker', 'url': 'http://maildocker.io'},
    attachments=[
        {'name': 'plaintext.txt', 'type': 'text/plain', 'content': 'dHN0'},
        'spreadsheet.xls'
    ]
)

http_status, response = md.send(message)

# OR

message = maildocker.Mail()

message.set_from('Maildocker <maildocker@ecentry.io>')
message.add_to('John Snow <john.snow@thrones.com>')
message.set_subject('maildocker-python-library')
message.set_text('**{{system}}** ({{url}})')
message.add_vars({'system': 'Maildocker', 'url': 'http://maildocker.io'})
message.add_attachment([
    {'name': 'plaintext.txt', 'type': 'text/plain', 'content': 'dHN0'},
    'spreadsheet.xls'
])

http_status, response = md.send(message)

Metadata

Release files for maildocker 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for maildocker 1.0.1
File Size Uploaded Provenance Actions
maildocker-1.0.1.tar.gz 3.2 kB Without provenance Details for maildocker-1.0.1.tar.gz

Release files / maildocker-1.0.1.tar.gz

Download URL maildocker-1.0.1.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4d1da5ca0c5390fbdf009a6d62908c8a90b714249af25e99d59da4727d30fdfc
BLAKE2b-256 checksum
How to use checksums
9ffe17f88e247cfa33c4c1b0ac37c87ffa26fc8df32e40400fedb9ec4b508ce1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for maildocker 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page