Using PHP to handle in-coming emails

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
LonelyProgrammer
Forum Contributor
Posts: 108
Joined: Sun Oct 12, 2003 7:10 am

Using PHP to handle in-coming emails

Post 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!
LonelyProgrammer
Forum Contributor
Posts: 108
Joined: Sun Oct 12, 2003 7:10 am

Re: Using PHP to handle in-coming emails

Post by LonelyProgrammer »

erh
*bump*
Sorry.
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: Using PHP to handle in-coming emails

Post 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
Post Reply