Re: email body text extraction.
| From: | Bogdan Stancescu | Date: | Tue, 19 Feb 2002 23:42:42 +0000 |
| Subject: | Re: email body text extraction. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-85460@lists.php.net to get a copy of this message | ||
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 athar_hameed@yahoo.com P.S. I would like to meet other PHP programmers in Islamabad, Pakistan. If anyone's interested, mail me at athar_hameed@yahoo.com