Do you have a question? Post it now! No Registration Necessary. Now with pictures!
April 9, 2008, 3:59 pm
rate this thread
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, 'example.zip', '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
Subject: Test mail
X-Mailer: HTML Mime mail class (http://www.phpguru.org )
Date: Wed, 9 Apr 2008 14:19:02 +0000 (UTC)
Content-Disposition: attachment; filename="example.zip"