0

I am using simplenews for my newsletter and mime mail to send them by mail.

I am trying to use the same CSS for my newsletter mail than my newsletter displayed on the web site.

Is it possible to refere the same css file?

1

On admin/config/system/mimemail you can tell mimemail to try and use the site's stylesheet when sending an email. You'll have to make sure that your css selectors apply to the elements of your email message or adjust it appropriately.

Alternatively if you want more control over the styles, do not tell mimemail to use the site's stylesheet but instead create a file named mail.css in your theme. Mimemail will automatically use it when sending emails.

Also make sure your theme is set as "Theme to render the emails" under admin/config/system/mailsystem, otherwise you might get the wrong stylesheets when your emails get sent via cron, for example.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.