billzhong/inbox.py

Python SMTP Server for Humans

Python

1,501

7 commits

updated Jul 11, 2016

See the code

README

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

Not written in Markdown, so it's shown here as plain text — view it formatted on GitHub.

billzhong/inbox.py

Python SMTP Server for Humans

Python

1,501

7 commits

updated Jul 11, 2016

See the code

README

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

Not written in Markdown, so it's shown here as plain text — view it formatted on GitHub.

Significant stargazers

Cory Benfield

1,406 followers · starred Apr 2012

Yuvi

944 followers · starred Apr 2012

Leo Liu

82 followers · starred Apr 2012

Alexandre Macabies

54 followers · starred Apr 2012