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)
Announcing mails_viewer - easiest way to test mails in Rails app
11–20 of 23 posts
Re: Announcing mails_viewer - easiest way to test mails in Rails app
#12 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.
Re: Announcing mails_viewer - easiest way to test mails in Rails app
#13There 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)
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
#14I 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.
Re: Announcing mails_viewer - easiest way to test mails in Rails app
#15Re: Announcing mails_viewer - easiest way to test mails in Rails app
#16I 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
#17Re: Announcing mails_viewer - easiest way to test mails in Rails app
#18Nice. 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.
Re: Announcing mails_viewer - easiest way to test mails in Rails app
#19Re: Announcing mails_viewer - easiest way to test mails in Rails app
#20Besides 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, :)