Folks, This little class starts up an SMTP server which acts as an email sink, collecting all received emails destined for any address. All emails are routed to a Portable Unix Mailbox file. This is very handy for testing applications that send email. It runs in its own thread, so you can easily use it from a test fixture to collect your emails and verify them for correctness.
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440690 Enjoy! -adam -- Adam Feuer <adam at adamfeuer dot com> -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html