Sorry if this isn't in the right forum, I'm not sure how to post this to an issue for simplenews and I'm not sure it is simplenews either.
I'm sending out a newsletter using a template I got from MailChimp. At the moment I'm not even sending out any content just the template as it came with lorem ipsum.
When the email is received by gmail or hotmail it has inlined padding 0.3em and 0.5em and width 100% added to tables and td tags automatically. If I add widths to these tags myself inlined or as properties of the html element they are still added and overwrite or seem to be higher priority. I added !important to the inlined styles to enforce them but that still doesn't work. So my final test was overwriting the email being sent by mimemail and sending it using php's mail(). That displays the email just fine with no added css...
I've added mail.css as a blank file to my admin theme as suggested by some other posts I've found but that doesn't seem to effect it so I'm really not sure who might be doing this... simplenews or mimemail or maybe Drupal but I think that very unlikely.
Anyone have this happen to them? Any suggestions?
Thanks
Comments
Figured it out... finally
It seems that dropping in a blank mail.css into your admin theme isn't enough to actually get Mimemail to not do any addition of css to your template. I found I had to override this preprocess function with nothing as well.
Hope this helps anyone else that might have this problem.
fantastic! but...
Thanks so much - this is exactly what I'm looking for... but...
I don't know which file to update with your code shown. Where is the preprocess function, and how do I override it?
Thanks again!
Try template.tpl.php
You can place this preprocess in template.tpl.php or better yet, in your own module. See http://drupal.org/node/173880 for more info
Place this part at the bottom
Place this part at the bottom of your template php. Change "garland" to the name of your theme.
I tried this and it didn't
I tried this and it didn't seem to work with my theme.
My theme is called l.
However I found this which was useful...
http://drupal.org/node/346270#comment-2701264
Thank you. It worked for for
Thank you. It worked for for me.
Images in Header/Footer missing
This worked great for me, however after applying it the images used in my template's header & footer are not included (at all, checked the source). Has anyone had this issue?
Thanks for posting. I could
Thanks for posting. I could not figure out why my emails had all that extra CSS and why my emails looked terrible when I received them in Outlook. Now they are just the way I sent them!