3 ms·
Mailer previews will literally shave hours of time off of my email testing workflow — no more mail-to-a-test-account-and-wait garbage. And that's one of the min
by abvdasker 13y ago
Mailer previews will literally shave hours of time off of my email testing workflow — no more mail-to-a-test-account-and-wait garbage. And that's one of the minor features.
- thenduks 13y agoletter_opener[1] is really useful to avoid the test account + wait situation. Well, now you can just use mailer previews, I guess :) [1]: https://github.com/ryanb/letter_opener https://github.com/ryanb/letter_opener
- simple10 13y agopremailer is also useful. Even with the new Rails 4.1 email previews (available in development env), sometimes it's useful to be able to preview in production. https://github.com/fphilipe/premailer-rails https://github.com/fphilipe/premailer-rails
- matthewmacleod 13y agoAlso Mailcatcher, which runs a local SMTP server with a nice email-client-style web UI: http://mailcatcher.me http://mailcatcher.me
- rhizome 13y agoUnless you really need to be checking network deliver that much, mailers have long been testable, getting the last email sent from ActionMailer::Base.deliveries.last
- sergiotapia 13y agoBut you can just use 'letter_opener' and pow: Emails open up instantly on the browser to preview.
- easy_rider 13y agoHow will it 'preview' the sent mail? E-mail clients behave differently when it comes to layout. When I'm doing such testing, I still verify the mail in at least the top 90% tier e-mail clients (web and desktop).
- sergiotapia 13y agoYou're supposed to do the initial testing on the 'preview' and then actually test on real email clients. Colors, fontsizes, margins, etc. on preview to get it right - then email clients to perfect it.