Using html_mime_mail -- cannot get message + attachment working

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

I'm trying to send an e-mail message with plain text, HTML, and an

I'm using "html_mime_mail_2.5". My server is running PHP 4.4.1

The problem is when I add the attachment, the attachment comes through
fine, but the message-component does not come through. If I comment out
the attachment command (below), the message-component works fine.

    $mail->addAttachment($attachment, '', 'application/zip');

I know this is not a lot to go on... just wondering if anyone has seen
this before. Maybe it's a server setting or compatibility issue? I'm
basically just working with example.1.php that came with the bundle.

Below is a snippet of what I receive, and it is reporting a "bad
header", but I don't see anything obviously wrong. Just that the message
component is blank.

X-Amavis-Alert: BAD HEADER, MIME error: error: multipart boundary is
    or contains CR or LF
MIME-Version: 1.0
Subject: Test mail
X-Mailer: HTML Mime mail class ( )
Content-Type: multipart/mixed;
Date: Wed,  9 Apr 2008 14:19:02 +0000 (UTC)

Content-Type: multipart/alternative

Content-Type: application/zip
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=""


Site Timeline