Closed (duplicate)
Project:
Mime Mail
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 May 2007 at 15:03 UTC
Updated:
15 Oct 2009 at 00:59 UTC
I have sent a mail using simplenews with some images and CSS embeded. There is no problem with the images, but the mail is not using css; it is doing correctly in thunderbird, but gmail and hotmail show the mail without css; can anything be done?
thanks.
PD: the mail sample is attached
| Comment | File | Size | Author |
|---|---|---|---|
| mail_1.txt | 146.88 KB | enboig |
Comments
Comment #1
jerdavisAre you still seeing this issue with the current version?
Comment #2
crischan commentedThe same goes for KMail - just shows the text-only representation...
Going after it, i found that mimemail base64-encodes not only images, but also the HTML itself - this triggers at least KMail to completely ignore the encoded HTML part. (see function mimemail_extract_files($html) in mimemail.inc)
Is the HTML encoded by intent?
Comment #3
kenorb commentedThe some problem in GMail and Microsoft Outlook 2007, CSS is not parsed properly.
Comment #4
redben commentedThis is normal, when writing html emails, one should avoid css and (unfortunatly) write old style html (font table etc) to ensure the content is shown properly. The issue is a general one not mime mail specific. Webmail ignore css (and omit it) to ensure there pages show up consitantly. Mail clients on the other hand just don't care...
Resource worth mentioning :
http://www.alistapart.com/articles/cssemail/
http://www.sitepoint.com/article/code-html-email-newsletters
Comment #5
enboig commentedIs there any "parser" which translates a html+css to html? I think it would bé the simpliest way to do this, but I haven't been able to find one.
Comment #6
Mike Sances commentedsubscribing
Comment #7
allie mickaI'm marking this as a duplicate of http://drupal.org/node/121849 . Please follow along there for themeing tips.
Comment #8
aryam8 commentedSubscribing
I also have the same problem with Gmail and hotmail, my text version is sent only.
I had dome another test from the mailchip website and those mails go in w/o any particular problem - images are seen, and the css are taken into consideration.
I've followed the same templating options used in mailchip with no avail, my e-mail still shows the text only version.
I've figured is because of the encoding of the html in base64 as the message sent through mailchip was encoded in base8
Comment #9
nedwardss commentedThis might be helpful. I'm trying it out a bit.
http://www.mailchimp.com/labs/inlinecss.php