views:

421

answers:

1

Hi, i'm looking for an answer to my problem with MS Entourage 2008 for Mac. I need to send a monthly newsletter composed as HTML email. All email clients (Outlook, Thunderbird ..) but Entourage can receive and read this email without major problems. Entourage, though is breaking the content and displays just few lines from the beginning. My guess is that it has something to do with the way how Entourage handles quoted-printable encoding. The important headers of email as they are set:

Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

The same behaviour in Entourage occurs when email is sent as multipart/alternative with alternative plain text. The content of the email is displayd until the character =00 occurs (encoded NUL?).

Is this Entourage bug behaviour? Or am I doing something wrong? If someone could give me an advise, i would appreciate it.

Cheers.

Gusep

A: 

I will answer myself in case that someone encounters the same problem. The problem is indeed those =00 characters, so before sending the email you need to prepare it for quoted-printable encoding and remove all null characters.

$str = preg_replace('/\x00+/', '', $str);
Gusep