Metadata-Version: 2.0
Name: emailx
Version: 0.1.1504076508
Summary: easy as hell email sending for python
Home-page: https://github.com/djrobstep/emailx
Author: Robert Lechte
Author-email: robertlechte@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: CPython
Requires-Dist: six

# emailx: easy as hell email sending for python

Install like this:

    pip install emailx

Use like this:

    from emailx import Email, smtp_connection

    SMTP = 'smtp.example.com'

    LOGIN = ('alex', 'password123')

    dummy_recipients = 'Alex <alex+testing@example.com>'

    with smtp_connection(SMTP, LOGIN) as c:
        e = Email(
            source='Alex <alex@example.com>',
            subject='Hello',
            body='Body',
            html_body='<html>Body</html>',
            to_addresses='Bobby <bobby@example.com',
            bcc_addresses='Kim <kim@example.com>',
            attachments={
              'a.csv': csv_data
            }
        )
        c.send(e)


