Skip to content

Instantly share code, notes, and snippets.

@ka8725
Created March 7, 2014 20:12
Show Gist options
  • Save ka8725/9419051 to your computer and use it in GitHub Desktop.
Save ka8725/9419051 to your computer and use it in GitHub Desktop.
mailtatcher replacement
$ python -m smtpd -n -c DebuggingServer localhost:1025
This is how receiving email looks like:
---------- MESSAGE FOLLOWS ----------
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Subject: User activation - localhost:8000
From: [email protected]
To: [email protected]
Date: Fri, 07 Mar 2014 20:08:24 -0000
Message-ID: <[email protected]>
X-Peer: 127.0.0.1
localhost:8000/accounts/activate/7edf1655797a1705364939e7a0901287fef6e164/
------------ END MESSAGE ------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment