I have copied the mimemail-message.html.twig from the module and placed in my theme, then I have created mail.css in my template folder. However it doesn't seems to be working. I'm trying to follow the instructions from README.txt, but still no luck.

Based from the README.txt file, creating mail.css file anywhere in the theme and enable Compressor module should be sufficient. Is it dependent to another module in order to make the inline style work? If so, should the link to the compressor module included in the README.txt?

Since some email clients (namely Outlook 2007 and GMail) is tend to only regard
inline CSS, you can use the Compressor to convert CSS styles into inline style
attributes. It transmogrifies the HTML source by parsing the CSS and inserting
the CSS definitions into tags within the HTML based on the CSS selectors. To
use the Compressor, just enable it.

Mime mail configuration:
Include site style sheets: Yes
Email Format: HTML Email

Mail system configuration:
Formatter: Mime mail mailer
Sender: SMTP mailer
Theme to render the emails: Example theme

or maybe I am missing something? Please advise.

Comments

madelyncruz created an issue. See original summary.

tr’s picture

Status: Active » Closed (duplicate)

See #2863079: Add support for mail.css

The instructions in the README are for Drupal 7 and haven't been updated for Drupal 8 because that feature hasn't been ported to Drupal 8 yet. Please help in the above issue if this feature is important to you.