After mime parsing I am getting email body with duplicate entry(plain n html) and wondering how I can get the true message body. I am using php/mysql. Is there anything in php string or mysql to solve this?
email message body Sample:
testing body from hotmail. testing word can be repeated.
testing body from hotmail. testing word can be repeated.
Ok, so as I said you receive the email in double because you receive it in
plain/textandtext/htmlformat.The best way to read email from pop3 as I found until now is Manuel Lemos POP3 Access
the email formats ussualy are received in parts, for each type or image
plain/text:text/html:you will find in headers the name of the part, that unique identifier
There isn’t a simple way to get the real
plain/textandtext/html, they are most likely to be togheter if sent from a public email service. If you send email from your scripts, I don’t think you’ll bother to send that email in double format.