premailer / actionmailer_inline_css

Seamlessly integrate Alex Dunae's premailer with ActionMailer.
http://madebynathan.com
MIT License
75 stars 25 forks source link

Styles aren't applied inline in email itself, but in preview it's ok #29

Open maciej-sokolowski opened 4 years ago

maciej-sokolowski commented 4 years ago

Hello, i have a problem. I have mailer layout and in i includes styles: = stylesheet_link_tag 'mailers/application', media: 'all' and it's working on Action Mailer Preview- styles are converting into inline styles, everything it's fine.
But the problem is when i'm sending the real email (invoke method through the console to be precise, and gmail is the receiver). None of styles aren't applied in inline-way (or as normal styles nethier) and mail looks almost like non-styling html.
Can anyone know the answer why is that happend?