Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

abstraction layer on top of the email package to make sending emails a little bit easier

Project Description

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.


Release History

This version
History Node

0.3.0

History Node

0.2.0

History Node

0.01

History Node

0.1.0

Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
easymail-0.3.0-py2.py3-none-any.whl
(5.3 kB) Copy SHA256 Hash SHA256
Wheel py2.py3 Dec 9, 2016
easymail-0.3.0.tar.gz
(31.7 kB) Copy SHA256 Hash SHA256
Source None Dec 9, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting