Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndrewPix/70bade805990867915cdf825c7d8879f to your computer and use it in GitHub Desktop.
Save AndrewPix/70bade805990867915cdf825c7d8879f 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