Page 1 of 1

Using PHP to handle in-coming emails

Posted: Tue Jul 01, 2008 2:41 am
by LonelyProgrammer
Hi all,

I am looking for a way for PHP to process email the moment it arrives at the server. The client wishes for a script that examines the content of the mail and extract some information (each email will be in a standard format). I am stumped as to how to write a script that process emails; does it requires a socket to the SMTP server? I never came across this in any books or web articles, so I am hoping someone can point me in the right direction.

Thanks in advance!

Re: Using PHP to handle in-coming emails

Posted: Wed Jul 02, 2008 10:05 am
by LonelyProgrammer
erh
*bump*
Sorry.

Re: Using PHP to handle in-coming emails

Posted: Wed Jul 02, 2008 12:06 pm
by Eran
If you can redirect your mail into a PHP script, you can read it directly using an input stream:
http://forums.invisionpower.com/lofiver ... 01224.html