Hello Manuel thanks for your response, yes my email is a bit confussing and i will try to explain it better.
First i'am using Class pop3.class.inc and the output feeds to your class, decoding works fine with atachments and emails with html(when is included an alternate text thanks to Outlook Express)
But I'am getting the error:
"MIME message decoding error: reached a premature end of data at position -1"
when the incoming email is ONLY text or ONLY html.
Here is the "exact" email in text/plain who gives error:
librosdorados.com/files/hotmail_err
...
the body is: "probando."
Here the email with text/plain and text/html, who is decoded without errors:
librosdorados.com/files/hotmail_dec
...
The body: "This email has html but also with txt."
In both cases i'am using Outlook,sending an email from my hotmail to my smtp accout, in the first case the email is text and in the second is html).
I'am thinking that the error happens because the start of body isn't defined properly after of the empty line.
If decoding of basic messages(only html or txt) works fine perhaps the class Class pop3.class.inc that i'am using, has bugs?
Thanks in advance,