Closed (fixed)
Project:
Simplenews Template
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Dec 2010 at 01:53 UTC
Updated:
17 Dec 2010 at 17:20 UTC
I am having a themed newsletter using mytheme_simplenews_template_mail().
The template works fine using the following sending methods:
Odd enough, it is overwritten in an ugly way when running cron automatically: a style attribute is added to every single tag destroying the visual aspect of the template.
I can't find while this is happening. I am only guessing that it could be related to permissions but what confuse me the most is that the function is called, the template I provide is used… but in an scrambled way!
Comments
Comment #1
tomgf commentedThis seems to be in relation with mimemail_compress.
Could it be the case of this module acting different on authenticated vs. anonymous users?
Comment #2
tomgf commentedI found where this problem lies: it's not a Simplenews issue but a Mimemail one… Documented here (#958146):
I am using two themes: one for administration and another for the public. Either Send one test newsletter to the test address or manually run cron are using the admin theme. Regular cron is using the public theme and it wasn't finding there the proper mimemail-message.tpl.php template. Therefore, it was using the default one that creates a clash with Simplenews Template.
Solution
If you are using a different admin theme, remember to check – and duplicate – functions and templates in both places.