Re: can PHP talk to mail server?

From: Date: Sat, 04 Sep 2004 17:12:26 +0000
Subject: Re: can PHP talk to mail server?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-195861@lists.php.net to get a copy of this message
Raditha Dissanayake wrote:
See Kok Boon wrote:
Hi experts, I would like to write a script to read mails directly from the mail server and extracting the information, create "custom" auto-responders automatically. Is this possible?
Start by reading about the imap functions but you cannot create autoresponders this way since they are mail server specific. actually, you can. However, these would be pseudo-immediate. A way I use to achieve this kind of action (for a different system though), is by making a cronjob which calls a script quite often (eg. every 5 min). Add a quick check at the top if it has recieved any new mails, if not, quickly exit, otherwise process them and then auto-respond.
You can always expand the script in various ways.

« previous php.general (#195861) next »