Closed (fixed)
Project:
Mime Mail
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Oct 2008 at 01:13 UTC
Updated:
8 Feb 2009 at 05:09 UTC
While theming the message body, MimeMail finds the 'current css' to add thanks to the function drupal_get_css().
This 'current css' is the css of the theme used to edit the node.
When an administration theme is used to edit nodes, the css of this theme will be added to the mail; causing the mail to be wrongly themed.
Comments
Comment #1
theorichel commentedI may have this same issue. I am on Drupal 5.11 and was used to sending out Simplenews Newsletters themed with Simplenews_Template. Since the last upodate of Mimemail however some theme is superimposed over that template. My site as well as my newsletter were centered, but my admin theme (Garland) is left aligned. Now my newsletter is left aligned.
Comment #2
franzinenstein commentedSame problem.
Did you find any solution?
Comment #3
MedicSean37 commentedYeah, I have this issue too.
Comment #4
Z2222 commentedWhen you look at the HTML source of th emails do you see and HTML document embedded within another HTML document? (i.e., two
<html>elements)Comment #5
TheresaB-1 commentedI am having this same issue as well has there not been a fix for this or at least an identification of the problem. This issues makes both Mime Mail and Simplenews unusable.
Comment #6
TheresaB-1 commentedOk I found this helped me and sloved my problems.
go to admin/settings/htmlmail/settings and uncheck "Line break converter", "Preformat HTML code" and "URL Filter"
I am using FCKeditor and when I unchecked those adn saved everything worked.
The code picks up my mail.css and now sends the code with only that css and not the entire sites css.
I hope this helps.
Comment #7
jerdavisOne solution for this is hinted at in TheresaB's post. If you setup a mail.css file within your theme directory this file will be used rather than the drupal_get_css() call.
With the architecture we have planned for 2.x we'll have a few other options which will give you greater flexibility as well.
For the people having this problem - are you all using Simplenews?
Jer
Comment #8
geerlingguy commentedI'll try the mail.css approach; I've been having trouble with MIME mail messages, too.
Comment #9
BarisW commentedYes, I am using simplenews.
Cannot get it to work. mail.css isn't used, whatever I try.
But also the simplenews-newsletter-body.tpl.php isn't being used.
Drives me crazy for days now...
Comment #10
TheresaB-1 commentedYes I am using simplenews and 'just using a mail.css' did not work for me the problem I was having completely and absolutely fixed once I went to admin/settings/htmlmail/settings and unchecked "Line break converter", "Preformat HTML code" and "URL Filter"
Once I did that it used the mail.css and stopped bringing in all the other style sheets. I suggest you try the un-checking those values and then go through once more following the instructions for both simplenews and MimeMail, I did and now it is all playing nice together.
Comment #11
jerdavisThe fix for mail.css not being included had been addressed in http://drupal.org/node/319353
I'm going to tentatively mark this one as fixed - if people still have problems with admin themes being included or overriding mail.css please let me know.
Jer Davis