Skip to content

Simple python smtp server with web view for viewing incoming mail

Notifications You must be signed in to change notification settings

benbuc/Simple-SMTP-Server

 
 

Repository files navigation

Simple SMTP Sink Server

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.

Web Interface

Screenshot

Instructions

Usage

Run

$ python smtp_server.py

open web interface at

http://localhost:8080/

Config

  1. Default web url : http://localhost:8080/
  2. Default SMTP host: http://localhost:1130/
  3. Edit server = SMTPServerThread(('127.0.0.1', 1130) ) to your desired SMTP ip & port.
  4. Edit bottle.run(app, host='localhost', port=8080, reloader=(not runServer)) to your desired web ip & port

Pre-requisits

  • Django >= 1.4 (for templating)
  • python >= 2.5

Comes package with bottle.py

Note

All data is stored in pickled format and is loaded into memory. You may want to delete the data file from time to time.

Todo:

  • Allow deletion of messages
  • Render HTML email content

About

Simple python smtp server with web view for viewing incoming mail

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 97.2%
  • HTML 1.8%
  • CSS 1.0%