Multi part mail message with attachment


I downloaded a script to send a mail attachment

The script works fine when I send the message to a user and check the mail via usermin, but when I send it out to a domain hosted externally I see the following as the message.

MIME-Version: 1.0

Content-Type: multipart/mixed;

Date: Fri, 20 Aug 2010 09:15:56 +1000 (EST)

This is a multi-part message in MIME format.

Content-Type: text/plain; charset=“UTF-8”
Content-Transfer-Encoding: 7bit

Here is your file: grey1.jpg

Content-Type: image/jpeg;
Content-Transfer-Encoding: base64



I am trying to get the form working for a client that doesn’t have their mail hosted on my server.

I have tested on various mail clients so I don’t think that is the problem, the message comes through ok without an attachment so it seems like the multipart bit is causing the error but since it work in usermin and for locally hosted domains I am not sure where to fix it.

Any ideas


Still not sure what is causing the problem but I have managed to get the phpMailer script to work so I will use it.