Metadata-Version: 2.0
Name: easymail
Version: 0.3.0
Summary: abstraction layer on top of the email package to make sending    emails a little bit easier
Home-page: https://github.com/mfussenegger/easymail
Author: Mathias Fussenegger
Author-email: pip@zignar.net
License: MIT
Platform: any
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.5
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development
Classifier: Topic :: System :: Networking

easymail
========

[![Build Status](https://secure.travis-ci.org/mfussenegger/easymail.png?branch=master)](https://travis-ci.org/mfussenegger/easymail)

The email package in pythons standard library is pretty low level.
Easymail aims to add an abstraction layer on top that sets some (hopefully) sane
defaults.

These defaults include:

* using utf-8 encoding by default. 
* important headers (like Date)


A simple example:

    from easymail import Email
    from smtplib import SMTP
    e = Email('My Name <mymail@somedomain.com>', 'recipient@otherdomain.org')
    e.subject = 'hello world'
    e.body = 'with some non-äscii charöcters'

    smtp = SMTP('mymailserver.com')
    smtp.sendmail(*e.args)

Slightly more advanced:

    from easymail import Email, Attachment
    from smtplib import SMTP
    e = Email('My Name <mymail@somedomain.com>', 'recipient@otherdomain.org')
    e.subject = 'hello world'
    e.body = 'with some non-äscii charöcters'

    e.attachments.append(Attachment('./path/to/picture.png'))
    e.attachments.append(Attachment('./path/to/document.pdf'))

    smtp = SMTP('mymailserver.com')
    smtp.sendmail(*e.args)


Dependencies
============

Pure Python 3.5+

License
=======

Easymail is licensed under the MIT license.


