Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
sgabe CreditAttribution: sgabe commentedAre you using a mail.css to style your messages? I guess not...
Comment #2
sgabe CreditAttribution: sgabe commentedThis 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.
Comment #3
ibes CreditAttribution: ibes commentedMay 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)
Comment #4
vasikenot really because it's about also the template file, not only the mail.css
Comment #5
sgabe CreditAttribution: sgabe commentedThis 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.
Comment #6
ibes CreditAttribution: ibes commentedI checked up old issues and came across this:
duplicate? http://drupal.org/node/883284
Comment #7
sgabe CreditAttribution: sgabe commented@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.
Comment #8
jherencia CreditAttribution: jherencia commentedPlease review #1349728: Possibility to configure the theme that will render the email.