outbox 0.1.4

SMTP client for Humans

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!

What's new in outbox 0.1.4:

  • Handle passing a single recipient as a string, instead of forcing the recipient to be a list.
  • Handle utf8 email properly. Thanks, Zhang Mingyuan! I doubt I've covered every use case, so the charset to use can be passed in when constructing an Email.
  • Added a sender_address method to the Outbox class, for when the username used for authentication isn't good enough.
Read full changelog
send us
an update
LICENSE TYPE:
BSD License 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Nathan Hoad
HOMEPAGE:
bitbucket.org
CATEGORY:
ROOT \ Communications \ Email
outbox is simplest SMTP client you'll ever see. It's 100% synchronous...

Usage

Give your app an outbox easily:

from outbox import Outbox, Email, Attachment

outbox = Outbox(username='username', password='password',
 server='server', port=1234, mode='SSL')

outbox.send(Email(subject='my subject', body='some nice sentiment'), [
 Attachment('kittens.jpg', filepath='/path/to/kittens.jpg'),
 Attachment('my-transient-file.bin', raw='some raw data'),
])

outbox.send(Email(subject='my subject', body='< b >SOME REALLY NICE SENTIMENT< /b >', type='html'), [
 Attachment('kittens.jpg', filepath='/path/to/kittens.jpg'),
 Attachment('my-transient-file.bin', raw='some raw data'),
])


Installation

Installing Outbox.py is simple:

 pip install outbox

Last updated on September 2nd, 2012

requirements

#SMTP client #email server #synchronous SMTP #SMTP #email #client #server

Add your review!

SUBMIT