An simple python based SMTP server, with a neat web interface for viewing all the messages that hit this server. It basically acts as a sink for all emails and so message are neither validated, proxied nor delivered to any recepient.
Useful for testing out smtp/emails of your project.
Run
$ python smtp_server.py
open web interface at
http://localhost:8080/
- Default web url : http://localhost:8080/
- Default SMTP host: http://localhost:1130/
- Edit
server = SMTPServerThread(('127.0.0.1', 1130) )
to your desired SMTP ip & port. - Edit
bottle.run(app, host='localhost', port=8080, reloader=(not runServer))
to your desired web ip & port
- Django >= 1.4 (for templating)
- python >= 2.5
Comes package with bottle.py
All data is stored in pickled format and is loaded into memory. You may want to delete the data file from time to time.
- Allow deletion of messages
- Render HTML email content