E-mail is formatted just like HTTP messages - just split it in two after the first \r\n\r\n and the first part is the header and the rest is the body. You'll have to look for a line starting with "Subject:" in the header and store the second part. You'll have a small problem if you expect to also get attachments...
Bogdan Athar Hameed wrote: >I want to check for new emails (with a specific subject) and extract the >message body. This message body will be used to update specific parts of my >website. Any ideas? > >Many thanks in advance. > >Regards. >Athar Hameed >[EMAIL PROTECTED] > > >P.S. I would like to meet other PHP programmers in Islamabad, Pakistan. If >anyone's interested, mail me at [EMAIL PROTECTED] > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php