Last active
September 5, 2017 00:16
-
-
Save mscoutermarsh/ccce72d2410f7b440f9fd98ab7a1b594 to your computer and use it in GitHub Desktop.
premailer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
email = Premailer::Rails::Hook.perform(YourMailer.some_email(blah_blah)) | |
# get the body | |
email.html_part.body.to_s | |
# text | |
email.text_part.body.to_s | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment