<?
$mbox = imap_open("{localhost:143}", $username, $password);
echo "<title>Headers</title>\n<pre>";
echo htmlentities(imap_fetchbody($mbox, 1, 0)) . "\n</pre>";
echo trim(imap_body($mbox, 1));
?>
right now when I open the e-mail I see
Return-Path: <john@jkcool.com>
Received: (from john@localhost)
by jkcool.com (8.11.6/8.11.6) id g632ilv24410
for john@jkcool.com; Tue, 2 Jul 2002 21:44:47 -0500
Date: Tue, 2 Jul 2002 21:44:47 -0500
From: john@jkcool.com
Message-Id: <200207030244.g632ilv24410@jkcool.com>
To: john@jkcool.com
Subject: test
Hi there 1025664295 1 Status: RO X-Status: X-Keywords: X-UID: 1 Hi there
I just want it to say
Return-Path: <john@jkcool.com>
Received: (from john@localhost)
by jkcool.com (8.11.6/8.11.6) id g632ilv24410
for john@jkcool.com; Tue, 2 Jul 2002 21:44:47 -0500
Date: Tue, 2 Jul 2002 21:44:47 -0500
From: john@jkcool.com
Message-Id: <200207030244.g632ilv24410@jkcool.com>
To: john@jkcool.com
Subject: test
Hi there
any ideas how I can do this?
John