Announcing mails_viewer - easiest way to test mails in Rails app
pragmaticly.github.com
pragmaticly.github.com
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.
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.
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.
I think it would be better if you also put the screenshot in your blog into the README.md.