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. I don't want to send out emails in dev mode. At all. (mailsafe) 2. I want an easier way of looking at the emails my server does send out (letter_opener, mailcatcher, mails_viewer) 3. I want to be able to preview an email without having to do the action that triggers it (mail_view)
mail_view requires you to write additional code. The pro is that you can preview it lively without doing the action again. The con is that you have to write the scenario for preview.
I usually do this with a dummy controller rigged up to show them in the browser and fire them at whitelisted test inboxes, but always nice to see more ways people handle these challenges.
I think it would be better if you also put the screenshot in your blog into the README.md.