4 Replies Latest reply: May 23, 2012 5:55 PM by etresoft
Christopher Harris Level 1 Level 1 (25 points)

Can somebody explain this:


I'm generating multipart text/html messages from a PERL program on a Linux machine. The result looks exactly as I want, EXCEPT when the messages go to a mobileme address. When I open such a message, I see that style-statements, images and links are missing. Looking at the raw source, it seems that all occurences of "=" have been stripped out, rendering the tags that contain them invalid


(example: '<div style="Font-Family: Times, Serif">' becomes: '<div style"Font-Family: Times, Serif">')


what's doing this and how do I avoid it?

  • etresoft Level 7 Level 7 (27,125 points)

    You have to encode it using either quoted-printable or base64. There are Perl modules that will do either. If you need to support Blackberry, you will have to use base64. The Blackberry servers have quoted-printable bugs.

  • Christopher Harris Level 1 Level 1 (25 points)

    When I say I'm using PERL, what I'm actually doing is using a PERL program to generate a text file, which I then pipe into sendmail.


    If I examine the text file, both the html and the text alternatives are headed by:


    Content-Transfer-Encoding: quoted-printable

    Content-Type: text/html (or text/plain);



    After I've received the mail from the mobileme server, the plain text part is exactly as I sent it, but in the html part it's been altered to:


    Content-type: text/html; CHARSET=US-ASCII

    Content-transfer-encoding: 7BIT


    I don't see how or why this should have been changed. And why just in the html section?


    I'll try changing to base64 to see if it makes any difference.

  • Christopher Harris Level 1 Level 1 (25 points)

    ok, I changed the encoding to base64 and it works now. I still don't fully understand what's going on, but at least I can work with this.


  • etresoft Level 7 Level 7 (27,125 points)

    I just did a test of one of my Perl-build e-mail messages through iCloud. I've never seen such a heavy amount of e-mail modification. It didn't scramble my HTML like it did yours but it did really scramble my plain text.