Mimemail not pulling site theme so emails have text but no theming. I wanted Drupal welcome emails to be in HTML, am I missing something. I have both mime modules installed.

Comments

sgabe’s picture

Did you check the Use mime mail for all messages option on the settings page?

vrajak@gmail.com’s picture

I have the same problem as the original poster. I have checked the option the comment specifies above, but still doesn't work. Although I have only tried in the "test email" setting. Does that have anything to do with it?

sgabe’s picture

@Vraja: Are you using a different administration theme than your default theme? If you are, copy your custom template files into your administration theme's folder and try again.

kirsh’s picture

I had a similar problem. It stopped working after upgrading from alpha1 to alpha2.
After deleting the smtp_library variable (it pointed to a non existing directory after the switch to alpha2)
and turining off and on the "Use mime mail for all messages" checkbox - it works again.

sgabe’s picture

Is this issue still valid?

kirsh’s picture

I Just upgraded from alpha6 to alpha7 - it still happens - as described in #4.

sgabe’s picture

Version: 6.x-1.0-alpha1 » 6.x-1.x-dev

@kirsh: Let's clear this up a little. The value of smtp_library variable has changed during the update? Do you think I can reproduce this by installing alpha6 then updating to alpha7? Please provide information how to reproduce.

The original post says:

Mimemail not pulling site theme so emails have text but no theming

Is the text HTML or plain? Is just the styling missing or the entire message is plain text? Are we talking about the same issue here?

AlanT’s picture

I just upgraded to the most recent version, and I'm now having the same issue.

Emails are going out as HTML/text, but the HTML does not use the site's CSS. (All HTML tags are plain, with no styling at all.)

I use Zeropoint for the public area, and Newsflash for the admin area. Prior to this upgrade, emails went out with Zeropoint styling, which is what I want.

Configuration options checked:
Use mime mail for all messages
Include site style sheets

Testing a suggestion above, I disabled both settings, saved, and then re-enabled them, and saved again. This did not fix the issue.

Personally, this is reason enough to go back to the previous version, if I can find it.

Hope my report helps to find and fix the issue.

sgabe’s picture

Is Zero Point your default theme?

AlanT’s picture

Yes, Zero-Point is my default theme.

AlanT’s picture

I have new information. Earlier today, I created a mail.css file to tweak a setting (max-width) for emails. This proved to speed up the sending process tremendously for my newsletter.

In looking over some settings, I noticed that the "Include site style sheets" option was unchecked and could not be checked. I suspect this is because the mail.css file is now present.

Anyways, I tested alpha-8 again, the one which was not working for me before. It does pull styles from the mail.css file.

However, when I rename the mail.css file to effectively remove it from the system, styles are still not being pulled from the theme stylesheets, even though I go back into the settings and check "Include site style sheets".

Because having a mail.css file improves sending speed for my newsletter, I plan to keep it, which means that this issue no longer affects me.

sgabe’s picture

Status: Active » Closed (works as designed)

@AlanT: I just installed Zero Point and it seems the only CSS file that can be found by drupal_add_css() is the round.css which formats only the search form. This issue needs to be solved by the maintainer of the theme.

I think the rest of this issue is the same case. It works as designed, but you should check if the theme's CSS files can be picked up by the module.