Skip to content

Instantly share code, notes, and snippets.

@akadan47
Created July 26, 2014 15:45
Show Gist options
  • Save akadan47/4363590234cdbd937e7c to your computer and use it in GitHub Desktop.
Save akadan47/4363590234cdbd937e7c to your computer and use it in GitHub Desktop.
One line SMTP python server
# Start simple SMTP server on localhost:25 and print to standard output all email headers and the email body.
# Useful for debugging outgoing mail without configuring SMTP daemon in development enviroment.
python -m smtpd -n -c DebuggingServer localhost:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment