emai ontleden van headers

Status
Niet open voor verdere reacties.

ticom

Gebruiker
Lid geworden
5 sep 2006
Berichten
92
Hallo,
Ik ben voor een site een klein email scriptje aan het maken, dat via pop3 de berichten ophaald.
Nu heb ik hem zover gekregen dat hij alle headers en het hele bericht in 1 variable heeft, zou iemand nu weten hoe ik het bericht uit die headers kan halen? want die headers zijn steeds anders... bv. bij een email via de php mail functie verstuurt zijn maar een stuk of 10 headers, bij een email via outlook verstuut komt dat wel richting de 100 regels.

Dus zou iemand weten hoe ik het bericht tussen de headers vandaan kan halen?

Alvast bedankt,
ticom/timothy de vries

edit:
Hieronder een voorbeeld van een bericht met de headers enz erbij, het bericht is via outlook verzonden:



Return-path:
Envelope-to: support@hostyourimg.com
Delivery-date: Wed, 23 May 2007 23:53:55 +0200
Received: from smtp15.wxs.nl ([195.121.247.6])
by srv1.hosttech with esmtp (Exim 4.60)
(envelope-from )
id 1HqymJ-0004N4-FN
for support@hostyourimg.com; Wed, 23 May 2007 23:53:55 +0200
Disposition-notification-to: ticom@timothydevries.nl
Received: from ticom1 (ip545008db.speed.planet.nl [84.80.8.219])
by smtp15.wxs.nl
(iPlanet Messaging Server 5.2 HotFix 2.15 (built Nov 14 2006)) with SMTP id
<0JII0073XKTM6A@smtp15.wxs.nl> for support@hostyourimg.com; Wed,
23 May 2007 23:53:46 +0200 (CEST)
Date: Wed, 23 May 2007 23:53:41 +0200
From: Ticom
Subject: blabla
To: support@hostyourimg.com
Message-id: <000601c79d84$d40093c0$0100000a@ticom1>
MIME-version: 1.0
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-Mailer: Microsoft Outlook Express 6.00.2900.3028
Content-type: multipart/alternative;
boundary="Boundary_(ID_7+Uw55p29MsbITuNJ14AQw)"
X-Priority: 3
X-MSMail-priority: Normal

This is a multi-part message in MIME format.

--Boundary_(ID_7+Uw55p29MsbITuNJ14AQw)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7BIT

yoehoe

--Boundary_(ID_7+Uw55p29MsbITuNJ14AQw)
Content-type: text/html; charset=iso-8859-1
Content-transfer-encoding: 7BIT








yoehoe


--Boundary_(ID_7+Uw55p29MsbITuNJ14AQw)--
 
Laatst bewerkt:
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan