Sure, here is what an e-mail looks like if it contains both text/plain and text/html portions:
This is a multi-part message in MIME format.
------=_NextPart_000_0009_01CA7F30.7F3A37C0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
From: sender@email.address
Sent: Wednesday, December 16, 2009 9:28 PM
To: test@email.address
Subject: This is the subject
This is the body.
------=_NextPart_000_0009_01CA7F30.7F3A37C0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<body>
This is the body.
</body>
</html>
------=_NextPart_000_0009_01CA7F30.7F3A37C0--
I am trying to find the best way to retrieve just the HTML portion (intact, with the html tags still there). As you can see, there are all sorts of headers. Anyone know a good module for this? |