smtp server simulation using Python

Josiah Carlson josiah.carlson at sbcglobal.net
Mon Jun 18 00:14:01 EDT 2007


William Gill wrote:
> I have a (web) development computer w/o an SMTP server and want to test 
> form generated e-mail using a dummy SMTP server that delivers the mail 
> message to a file, or better yet, to a text editor instead of actually 
> sending it.  Is it possible to extend the DebuggingServer class,and 
> override the process_message() method to accomplish this?  If so, any 
> suggestions are appreciated.

I would check out the smtpd module .  It isn't documented, but the 
source is fairly straightforward for subclassing.

  - Josiah



More information about the Python-list mailing list