• Stars
    star
    588
  • Rank 76,022 (Top 2 %)
  • Language
    Python
  • License
    MIT License
  • Created over 11 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Mailing for human beings

Envelopes

https://travis-ci.org/tomekwojcik/envelopes.png?branch=master

Mailing for human beings.

About

Envelopes is a wrapper for Python's email and smtplib modules. It aims to make working with outgoing e-mail in Python simple and fun.

Short example

from envelopes import Envelope, GMailSMTP

envelope = Envelope(
    from_addr=(u'[email protected]', u'From Example'),
    to_addr=(u'[email protected]', u'To Example'),
    subject=u'Envelopes demo',
    text_body=u"I'm a helicopter!"
)
envelope.add_attachment('/Users/bilbo/Pictures/helicopter.jpg')

# Send the envelope using an ad-hoc connection...
envelope.send('smtp.googlemail.com', login='[email protected]',
              password='password', tls=True)

# Or send the envelope using a shared GMail connection...
gmail = GMailSMTP('[email protected]', 'password')
gmail.send(envelope)

Features

Envelopes allows you to easily:

  • Provide e-mail addresses with or without name part.
  • Set text, HTML or both bodies according to your needs.
  • Provide any number of CC and BCC addresses.
  • Set standard (e.g. Reply-To) and custom (e.g. X-Mailer) headers.
  • Attach files of any kind without hassle.
  • Use any charset natively supported by Python's unicode type in addresses, bodies, headers and attachment file names.

Project status

This project should be considered beta. Proceed with caution if you decide to use Envelopes in production.

Envelopes has been developed and tested with Python 2.7. Currently, Envelopes supports Python 2.6, 2.7 and 3.3.

Author

Envelopes is developed by Tomasz Wójcik.

License

Envelopes is licensed under the MIT License.

Source code and issues

Source code is available on GitHub at: tomekwojcik/envelopes.

To file issue reports and feature requests use the project's issue tracker on GitHub.

More Repositories

1

ForgeryPy

An easy to use forged data generator for Python
Python
67
star
2

jQuery-Custom-Checkboxes

Dead simple custom checkboxes jQuery plugin
JavaScript
16
star
3

jQuery-Custom-Radiobuttons

Dead simple custom radiobuttons jQuery plugin
JavaScript
7
star
4

SSHFS-Manager

SSHFS Shares Manager for Mac OS X
Objective-C
6
star
5

flask-htauth

Easy to integrate basic HTTP authentication for Flask apps
Python
6
star
6

tune-control

Tiny command line program for Mac OS X that makes controlling iTunes or Spotify from shell a walk in a park
Objective-C
6
star
7

iheartgit

I ♡ GIT
Python
5
star
8

redcache

Lightweight and extensible caching framework for Python applications. It uses Redis as its storage backend.
Python
4
star
9

libosxnotify

No nonsense OS X notifications for scripts.
Objective-C
4
star
10

BTHEventSource

Cross-browser Server-Sent Events Wrapper
JavaScript
3
star
11

elixir-calculator

Stupid calculator written in Elixir
Elixir
2
star
12

Maclets

Desktop widgets for Mac OS X
2
star
13

werkzeug_plus_unix_sockets

Monkey-patching Werkzeug WSGI server to use Unix sockets instead of TCP sockets.
Python
2
star
14

Team-O-Matic

Randomly generate teams from list of players.
Python
1
star
15

Flask-Module-Static-Files

Python
1
star
16

api_versioning_example

Python
1
star
17

dynhello

A demo application written in Elixir using Dynamo Web framework.
Elixir
1
star
18

PusherCast

Pusher demo app for easy livecasting
JavaScript
1
star
19

wtfpasswd

What The Fuck Should I Use For Password?
Python
1
star
20

mustache2js

Awesome Mustache to JavaScript converter
Python
1
star
21

tomekwojcik.github.com

Tomek Wójcik at GitHub
1
star