I am writing a simple php script for reading emails.
When I extract mail body with:
imap_body($mbox, $i);
I have returned something like this:
--0016e6db2b334d4d7904a883f4ec
Content-Type: text/plain; charset=ISO-8859-1
<The message arrived>
--0016e6db2b334d4d7904a883f4ec
Content-Type: text/html; charset=ISO-8859-1
<The message arrived>
--0016e6db2b334d4d7904a883f4ec--
How can I extract only: ? I am using php_imap.
Thanks.