-1

Internal style written in rails mailer template is not working.

<html>
    <head>
      ...
      ...
    </head>
    <body>
        <style type="text/css">
          ...
          ...
        </style>
    </body>
</html>

How to solve this problem?

pvrforpranavvr
  • 2,708
  • 2
  • 24
  • 34
  • You need to add more information if you want to get any kind of help. – Micho Jul 19 '17 at 01:25
  • 1
    Possible duplicate of [Why CSS is not working when sending HTML email?](https://stackoverflow.com/questions/14085630/why-css-is-not-working-when-sending-html-email) – Roland Studer Jul 19 '17 at 10:56

1 Answers1

0

Make sure that you are putting internal style inside head tag

eg:

<head>
    <style type="text/css">
    ...
    ...
    </style>
</head>

Note: Only internal style (must be in head tag) supports.

pvrforpranavvr
  • 2,708
  • 2
  • 24
  • 34