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!
Using PHP to handle in-coming emails
Moderator: General Moderators
-
LonelyProgrammer
- Forum Contributor
- Posts: 108
- Joined: Sun Oct 12, 2003 7:10 am
-
LonelyProgrammer
- Forum Contributor
- Posts: 108
- Joined: Sun Oct 12, 2003 7:10 am
Re: Using PHP to handle in-coming emails
erh
*bump*
Sorry.
*bump*
Sorry.
Re: Using PHP to handle in-coming emails
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
http://forums.invisionpower.com/lofiver ... 01224.html