Hi Lemos,
Firstly I thank you for providing the Mime Email parser as a php class. I have started using the same for my LAMP application just a few days back and also I am newbie to PHP as such. So thats great work by you.
I have a problem with parser though, I observe that the mails I get from few web based services like gmail and hotmail DONOT have the
'Content-Type' field in the header for 'multipart/realted' and no 'boundary' specified in the header too.
But the message is indeed multipart and is separated by valid boundaries. On
On using the class for these messages , the Body output I get include the boundaries and the text and html togther. I hope I am clear on thFrom:
For message like this ------------------>>
Shailesh Shirali <
[email protected]>
Subject: IGNORE : Test subject 4
--_de28b48f-27f5-4a5b-ae01-ab219cbc5471_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Test 1111111111111Test 222222222222222Test 333333333333333
_________________________________________________________________
Sign in and get updated with all the action!
content.msn.co.in/Sports/FormulaOne
...
--_de28b48f-27f5-4a5b-ae01-ab219cbc5471_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body><div style=3D"text-align: left;">Test 1111111111111<br>Test 222222222=
222222<br>Test 333333333333333<br></div><br /><hr />Sign in and get updated=
with all the action! <a href=3D'http://content.msn.co.in/Sports/FormulaOne=
/Default' target=3D'_new'>Formula One</a></body>
</html>=
--_de28b48f-27f5-4a5b-ae01-ab219cbc5471_--
I get this as the Body in the output Array --------->
--_de28b48f-27f5-4a5b-ae01-ab219cbc5471_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Test 1111111111111Test 222222222222222Test 333333333333333
_________________________________________________________________
Sign in and get updated with all the action!
content.msn.co.in/Sports/FormulaOne
...
--_de28b48f-27f5-4a5b-ae01-ab219cbc5471_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Do you have fix for this. You inputs will be really helpful
Thanks & Regards
Shailesh