Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Cobra mock SMTP server
Python
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
cobra.py

README.md

Cobra

Cobra is a dummy SMTP server, running on port 2525 for email testing. All received emails are dumped to an output file in "/tmp/cobra_out", which is wiped evey time the application starts. Messages are stored in the form of JSON documents, with the following schema:

{
    "body": "This is the message payload",
    "to": [
        "John Smith <john@example.com>"
    ],
    "from": "Test client <test@example.com>",
    "content-type": "text/html; charset=iso-8859-1",
    "subject": "Some cool message"
}
Something went wrong with that request. Please try again.