Hacker News new | ask | show | jobs
by bluepostit 5013 days ago
I also love using Python's integrated SMTP server.

  python -m smtpd -n -c DebuggingServer localhost:25
This will just spit out the raw email.

Edit: you need root permission to listen on port 25. Otherwise you can use a different port > 1024.

1 comments

Cool, :) So you start a smtpd to catch your mails and do the test. That's also how MailCatcher(http://mailcatcher.me) works. If it's fine to start a smtpd, it's a good choice too!
Didn't even think of searching for such application! It sure is great to be able to have an inbox-like view.