I noticed that if i make some admin actions which implies sending emails, the emails will used the admin theme instead the default theme, which i don't think it's the right thing.

i'm not sure if it's a bug or feature request, for me it's both.

imho i think the best solution it's to have some theming options like:
- use the default theme
- use this theme
- use the current theme (as it's now)

extending this it's nice to have the same options in the rules actions for sending emails

what do you think?

Comments

sgabe’s picture

Are you using a mail.css to style your messages? I guess not...

sgabe’s picture

Component: Miscellaneous » Code
Priority: Normal » Major

This is a well known issue, but unfortunately not easy to fix, see #374222: Template files do not work when using admin theme for more information. Currently the only workaround is to also place the modified template file into your admin theme.

ibes’s picture

May this can bring us a better work around:
http://drupal.org/node/1275734

Introduce a way to specific where the .css file for the mails is located (file or directory)

vasike’s picture

not really because it's about also the template file, not only the mail.css

sgabe’s picture

This issue is not just about the CSS file, but Drupal core searches for the template file also in the admin theme. Manually set these would be an option but also a limitation.

ibes’s picture

I checked up old issues and came across this:
duplicate? http://drupal.org/node/883284

sgabe’s picture

@ibes: No, as we wrote, #883284: Wrong theme selection in template_preprocess_mimemail_message() is about only the mail.css, this one is about also the template files.

jherencia’s picture

Status: Active » Closed (duplicate)