We have had several users contact us to let us know our newsletters cannot be displayed on iPhones. It seems as though something may not be properly escaped, because the emails begin with a /******* MAIL STYLING *******/ section, which displays a list of the CSS for the message to the user.

Comments

virtualdrupal’s picture

I can confirm the issue in D6

for emails like the drupal contact form, with mime enabled, the iphone attaches TONS of styling code.

sime’s picture

Title: iPhone Support » iPhone Support (base64 encoding) and plain text with css??

No complete answers yet, but here's what is happening as far as I've worked out.

There are 2 aspects:
1. iphone won't handle base64 encoding, so it's using the plain text version
2. mimemail is inserting the site's style sheets into the plain text version.

I'll post back if I get further.

sime’s picture

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

I think the problem is not with the iPhone anymore, well not exactly. With a small about of css the iphone displays the message fine.

But with the huge amount of css, not only the iPhone fails, but so does gmail (if gmail is set to only read the text version). So I'm guessing that when mimemail inserts the full stylesheet (which is like 50k charcters in our case) something is encoding badly and is not escaped properly. (??)

I'm updating to 6 dev, which is what we're using, but I guess the problem spans both.

virtualdrupal’s picture

I paid someone to fix this issue, but they don't have time to create a patch, here's a copy of the mimemail.module, can someone please create a patch.. if this doesn't work I'll include the mimemail.inc also, but I don't think any changes were made to it.

http://www.drupalbin.com/4542

This fixes the Iphone AND hotmail for me

virtualdrupal’s picture

Hi, looks like I had it backwords maybe.. here is a copy of the mimemail.inc

http://www.drupalbin.com/4546

sime’s picture

mikenotmike is this a modification of the D6 version?

sime’s picture

Status: Active » Closed (duplicate)
virtualdrupal’s picture

Yes, this was for D6