This repository has been archived by the owner. It is now read-only.
Python SMTP Server for Humans
Python
Switch branches/tags
Nothing to show
Clone or download
kennethreitz Merge pull request #16 from carloshanson/patch-1
Change pip install instructions
Latest commit 493f8d9 Jul 11, 2016
Permalink
Failed to load latest commit information.
LICENSE lawyer up Apr 28, 2012
MANIFEST.in lawyer up Apr 28, 2012
README.rst Change pip install instructions Jul 11, 2016
inbox.py removing gevent, this fixes #9 Jul 3, 2013
requirements.txt removing gevent, this fixes #9 Jul 3, 2013
setup.py i should have said no Feb 4, 2016

README.rst

Inbox.py: SMTP Server for Humans

This is the simplest SMTP server you'll ever see. It's asynchronous.

One instance should handle over one thousand emails per second.

Usage

Give your app an inbox easily:

from inbox import Inbox

inbox = Inbox()

@inbox.collate
def handle(to, sender, subject, body):
    ...

# Bind directly.
inbox.serve(address='0.0.0.0', port=4467)

You can also defer to the commandline:

if __name__ == '__main__':
    inbox.dispatch()
$ dasinbox.py 0.0.0.0 4467
[2012-04-28 07:31] INFO: inbox: Starting SMTP server at 0.0.0.0:4467

Installation

Installing Inbox.py is simple:

$ pip install inbox.py