How to send HTML email with styles in rails
Some element I found in multi-client email readability:
Using tables to arrange layouts and elements
Don't include images directly in your email address, but link to them from your site src = " http://example.com/myimage.jpg "
Always submit a text backup if your end user's client cannot read the html (e.g. military).
Use inline styles as recommended by sihingara, if you must require css and / j make sure you enter an absolute path, so src = " http://example.com/myjavascript.js " instead of src = "/myjavascript.js"
Hope this helps if not ask for a follow-up comment.
a source to share
As mentioned above, HTML emails don't pair well with style blocks that are declared out of order. Webmail clients, in particular, tend to exclude them entirely.
The best practice is to use inline styles only; for this I highly recommend the Premailer Plus gem which will embed all the styles in the html block. Depending on your workflow; you can do this when you create templates or as a pre-processor before sending each message.
a source to share