PDA

View Full Version : Help with MIME



eckley
02 May 2007, 09:01 AM
i'm writing a php script that will send and email from the site to myself and allow the viewer to add a .doc attachment. i'v got the script working fine but i can't get the email to display. Can anyone see what i'm doing worng?
heres the MIME code:

Delivered-To: eckley@gmail.com
Received: by 10.115.47.7 with SMTP id z7cs53022waj;
Wed, 2 May 2007 06:52:11 -0700 (PDT)
Received: by 10.100.251.9 with SMTP id y9mr467464anh.1178113931404;
Wed, 02 May 2007 06:52:11 -0700 (PDT)
Return-Path: <voicrcom@possum.cbr.hosting-server.com.au>
Received: from possum.cbr.hosting-server.com.au (possum.cbr.hosting-server.com.au [203.88.116.201])
by mx.google.com with ESMTP id q30si908194wrq.2007.05.02.06.52.09;
Wed, 02 May 2007 06:52:11 -0700 (PDT)
Received-SPF: pass (google.com: best guess record for domain of voicrcom@possum.cbr.hosting-server.com.au designates 203.88.116.201 as permitted sender)
Received: from voicrcom by possum.cbr.hosting-server.com.au with local (Exim 4.63)
(envelope-from <voicrcom@possum.cbr.hosting-server.com.au>)
id 1HjFFI-0005P7-38
for eckley@gmail.com; Wed, 02 May 2007 23:51:52 +1000
To: eckley@gmail.com
Subject: testing
From: stories@voicesontheswan.com.au
Reply-To: eckley@gmail.com
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="PHP_mixed_aa945df416a9629ff6a8509c3728502e";
Message-Id: <E1HjFFI-0005P7-38@possum.cbr.hosting-server.com.au>
Date: Wed, 02 May 2007 23:51:52 +1000
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - possum.cbr.hosting-server.com.au
X-AntiAbuse: Original Domain - gmail.com
X-AntiAbuse: Originator/Caller UID/GID - [32371 32002] / [47 12]
X-AntiAbuse: Sender Address Domain - possum.cbr.hosting-server.com.au
X-Source: /usr/bin/php
X-Source-Args: /usr/bin/php stories.php
X-Source-Dir: voicesontheriver.com.au:/public_html


Content-Transfer-Encoding: 7bit

X-Mailer: PHP/5.2.1

--PHP_mixed_aa945df416a9629ff6a8509c3728502e
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Message From: Alex (eckley@gmail.com)

Testing
1
2
3

--PHP_mixed_aa945df416a9629ff6a8509c3728502e

Content-Type: application/msword; name="test.doc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=test.doc"

0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAABAAAAKgAAAAAAAAAA
EAAALAAAAAEAAAD+////AAAAACkAAAD/////////////////////////////////////////////
.
.
.
i'v omitted the rest of the encoded word doc to save space
.
.
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAA==
--PHP_mixed_aa945df416a9629ff6a8509c3728502e--


cheers
eckley