David Mckee
David Mckee

Reputation: 1180

How can I view my HAML emails in the browser

I am currently writing some transaction-based emails in my Rails app for things like signup confirmation, etc. What I want to do however, is to be able to see what the email looks like in the browser or somewhere as I am making it. Since I am using HAML, I am unable to simply open the file in the browser.

How could I set it up so that I can view my HAML user_mailer code in the browser? If that is not possible, what alternative could I use just for emails?

Upvotes: 0

Views: 277

Answers (1)

Matteo Melani
Matteo Melani

Reputation: 2726

The following gem works well for me: https://github.com/ryanb/letter_opener

Upvotes: 2

Related Questions