Re: Auto Responders...

From: Date: Sun, 12 Aug 2001 19:54:18 +0000
Subject: Re: Auto Responders...
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-62329@lists.php.net to get a copy of this message
"ReDucTor" <sjdtmv@tpg.com.au> wrote: > one that will check for email, then if there is an email in that box, it > will send a message to the person that sent the message.... I don't know of a PHP autoresponder script that's publicly available. If you're running a flavor of unix you may want to consider using procmail to accomplish that. A quick google search will probably reveal several procmail autoresponder recipes (what procmail scripts are known as). If you want you can write me off-list for one I use. If you insist on using PHP you'll need PHP compiled as a standalone version (CGI) and if you're using Sendmail (other MTAs may work the same) you can create an alias to pipe email received for a given address to a PHP script. The script will need to read from STDIN and use regex to find either the From or Reply-To headers to get the sender's address to use in a mail() function. FYI, to read from STDIN in PHP4 use: fopen( 'php://stdin', 'r' ); -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/

« previous php.general (#62329) next »