Live data from Hacker News

Announcing mails_viewer - easiest way to test mails in Rails app

pragmaticly.github.com

11–20 of 23 posts

Re: Announcing mails_viewer - easiest way to test mails in Rails app

#11
There seem to be a few different problems being solved by the suggestions in the comments:

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)

Re: Announcing mails_viewer - easiest way to test mails in Rails app

#13

There seem to be a few different problems being solved by the suggestions in the comments: 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)

mails_viewer can do 1 and 2. The default usage will not send out emails at all. But if you want, you can. So it's preview and conditional send.

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.

Re: Announcing mails_viewer - easiest way to test mails in Rails app

#14

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.

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!

Re: Announcing mails_viewer - easiest way to test mails in Rails app

#16

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.

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.

Re: Announcing mails_viewer - easiest way to test mails in Rails app

#18

Nice. Is this closed source? Can you tell me what it adds on top of tomlion's code? Don't see anything about that in the readme. Thanks

Doesn't look closed source, there's a link to the github repo at the top of the page.

So there is, thanks. Chrome on Android doesn't show the top div, which is odd.

Re: Announcing mails_viewer - easiest way to test mails in Rails app

#20

Besides mails_viewer, there are several more choices such as mail_view, letter_opener, mailcatcher and mailsafe. Checkout our blog http://blog.pragmatic.ly/announcing-mailsviewer-a-rails-engi... for more info. There is a link in the github page but I think it's not clear, :)

Thanks for the list. I searched for these months ago and couldn't find much. I ended up using https://github.com/wireframe/email_preview, but some of these look pretty nice.
Post reply on HN