Hey perkiset - very sorry for the long delay in replying, basically I was without internet access for about a week due to an emergency, then when I regained access, I found that the server I usually do development work on had been compromised. So I'm just now getting back into the swing of things...
Anyway, here are the raw headers of the email (identifying elements replaced with capital X's) - obtained using imap_fetchheader:
Return-path:
Envelope-to: XXXX@XXXXXX.com
Delivery-date: Sat, 07 Jun 2008 12:18:48 -0500
Received: from XXXXXX.net ([XXX.XXX.XX.XXX] helo=XXXXXXX.net)
by XXXXX.XXXXXX.com with esmtp (Exim 4.68)
(envelope-from )
id 14XXX0-0007UaXXX-Gb
for XXXX@XXXXXX.com; Sat, 07 Jun 2008 12:18:48 -0500
Received: from XXXX.XXX (XXXX.XXX [XX.X.X.X])
by XXXXXX.net (Postfix) with ESMTP id 9FCX5F6XX85
for ; Sat, 7 Jun 2008 17:18:45 +0000 (GMT)
Received: by XXXX.XX (Postfix, from userid XX)
id XXXXX; Sat, 7 Jun 2008 13:18:58 -0400 (EDT)
Received: from localhost
by localhost (MailRouter rev. 1.04)
id TUMXXXXXXXXXXXXXXXXXE1ODYyNVNhMS4wNFNUUEhQ; Sat Jun 7 17:18:58 2008
To: XXXX@XXXXXX.com
Subject: Activate XXXXXXXXXXXXXXX
Date: Sat, 7 Jun 2008 17:18:57 +0000
From: XXXXXXXXXX
Message-ID: <XXXXXXXXXXXX@XXXXXXXX.com>
X-Priority: 3
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
I fiddled around for about a hour and cannot figure out how to get PHP to show the raw body of the email (whenever I use imap_fetchbody it simply returns the plain text of the email), but here is the output of imap_fetchstructure (with some comments of mine, variable meanings translated from the values over at
http://us.php.net/manual/en/function.imap-fetchstructure.php):
object(stdClass)#19 (12) {
["type"]=> int(0) // Primary body type is 'text'
["encoding"]=> int(4) // Body transfer encoding is 'QUOTED-PRINTABLE'
["ifsubtype"]=> int(1) // There is a subtype string
["subtype"]=> string(5) "PLAIN" // The subtype is plain
["ifdescription"]=> int(0) // There is no content description string
["ifid"]=> int(0) // There is no identification string
["lines"]=> int(10) // 10 lines in the email
["bytes"]=> int(295) // 295 bytes in the email
["ifdisposition"]=> int(0) // No disposition string
["ifdparameters"]=> int(0) // No dparameters array
["ifparameters"]=> int(1) // Parameters array exists
["parameters"]=> array(1) { [0]=> object(stdClass)#23 (2) { ["attribute"]=> string(7) "charset" ["value"]=> string(5) "utf-8" } } } // charset is UTF-8
To activate XXXXXX, please click the following link XXXX (basically plain text message body is here)
Hopefully that helps a bit, if there is anything else I can do to make the problem clearer, please let me know.
Thanks,
sysbuilder