Not sure what this is. If it's for mail previews in dev, why not use [letter opener](https://github.com/ryanb/letter_opener).