Mailers
Rails UI comes with ready-to-use mailer templates for generic email designs.
Rails UI mailer templates are a starting point for you to tweak as the content you send your users evolves.
Many email clients are out in the wild, and each has different areas of support regarding CSS and HTML. Rails UI includes essential support with some clever hacks you can use to do more with your templates.
It's recommended that CSS be inlined to work best inside any email, Tailwind CSS will not work well inside the templates. All included CSS resides inside the mailer layout template for this reason.
If you prefer to write your CSS in another stylesheet and include it in your layout, we recommend using something like premailer to ensure any additional styles you include render correctly inline.
Rails UI includes a few helpers to make your life easier when writing mailers. These are included in the application_mailer.rb file. Read more about them via links below: