Skip to main content

An easier way to send Email

Project description

cheesefactory-email


An easier way to send an Email.

PyPI Latest Release PyPI status PyPI download month PyPI download week PyPI download day

Features

Note: This package is still in beta status. As such, future versions may not be backwards compatible and features may change. Parts of it may even be broken.

TODO

Create an Email object and send

from cheesefactory_email import CfEmail

mail = CfEmail(
    host='localhost',
    port='25',
    username='emailuser',
    password='emailpassword',
    use_tls=False,
    header_tags={'X-Barracuda-Encrypted': 'RJSE-RSA-AES256-SHA'},
    debug=False
)

transfer_log = mail.send(
    sender='tom@example.com',
    recipients=['bob@example.com', 'mary@example2.com'],
    cc_recipients=['carol@example.com', 'larry@example2.com'],
    subject='Fishing trip',
    body='Dear Bob,\nHow was the fishing trip?\n\nTom',
    attachments=['/tmp/file1.txt', '/tmp/file2.txt']
)

Project details


Download files

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

Source Distribution

cheesefactory-email-0.6.tar.gz (7.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page