purify / mail_style

Making HTML emails a little less painful. Writes css inline and corrects image urls.
http://blog.purifyapp.com/2009/12/30/mailstyle-a-html-email-plugin-for-ruby-on-rails/
MIT License
192 stars 39 forks source link

option to not use mail_style on specific emails #14

Open dallas opened 13 years ago

dallas commented 13 years ago

Is there an option, or plans for such an option, which lets one really nail down which email actions should use mail_style and which shouldn't? I'm not sure I want it automatically parsing through all of my HTML emails automatically, I'd much rather be able to set some sort of flag on a specific email and have it just parse through that one.

dallas commented 13 years ago

I have a solution for this (not sure it's the best one) where MailStyle::InlineStyles isn't automatically included in ActionMailer::Base, instead it is up to the developer to decide which mailers they want to attach MailStyle::InlineStyles to.

https://github.com/qualitysmith/mail_style/commit/442c7228a73798775c65d81983ff70eed699a9c2