Code Monkey home page Code Monkey logo

envelopes's Introduction

Envelopes

image

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

python

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.

envelopes's People

Contributors

tomekwojcik avatar

Watchers

Corey Farwell avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.