Hey,
I've just started playing with POP3 and PHP... I used the following script which works well -
http://www.weberdev.com/get_example.php3?count=501&mode=color
it connects to the POP3 server and delivers the mail.... trouble is, it looks like this:
Envelope-to: [email]myname@mysite.net[/email]
Delivery-date: Tue, 07 Dec 2004 11:34:22 -0600
Received: from mail by server1.awesomedns.com with spam-scanned (Exim 4.32)
id 1CbjED-0006cI-EB
for [email]myname@mysite.net[/email]; Tue, 07 Dec 2004 11:34:22 -0600
Received: from [81.152.26.61] (helo=matty)
by server1.awesomedns.com with esmtp (Exim 4.32)
id 1CbjEC-0006bq-TJ
for [email]myname@mysite.net[/email]; Tue, 07 Dec 2004 11:34:21 -0600
From: "Matt Facer"
To:
Subject: test
Date: Tue, 7 Dec 2004 17:34:04 -0000
Message-ID: <009801c4dc82$f86fc430$0402a8c0@matty>
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0099_01C4DC82.F86FC430"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.2616
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Importance: Normal
X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on server1.awesomedns.com
X-Spam-Level:
X-Spam-Status: No, hits=0.2 required=5.0 tests=HTML_70_80,
HTML_FONTCOLOR_UNKNOWN,HTML_MESSAGE autolearn=no version=2.64
This is a multi-part message in MIME format.
------=_NextPart_000_0099_01C4DC82.F86FC430
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
testing123
Matt Facer
Recaf Internet Solutions Ltd
then goes on for ever with the rest of the message...
I'd like to hold emails in a MySQL Db but dont know how to recreate this message so it's delivered to my inbox once verfied....
is there a rebuild method or something?
sorry if I'm being thick!!