Re: [PHP] Mail responders
On Fri, 26 Apr 2002, Dennis Gearon wrote: All these lists that have addresses to subscribe, unsubscribe, etc, how do they work? Are they using a cron job to poll the mail inbox through sendmail? Does all mail not to a specific address at the site go to a 'catchall' address, which is then polled? Usually the mail is delivered directly to a program rather than to a mailbox. The program receives the incoming message as input and handles it as it pleases. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mail responders
How is that done on the box? Miguel Cruz wrote: On Fri, 26 Apr 2002, Dennis Gearon wrote: All these lists that have addresses to subscribe, unsubscribe, etc, how do they work? Are they using a cron job to poll the mail inbox through sendmail? Does all mail not to a specific address at the site go to a 'catchall' address, which is then polled? Usually the mail is delivered directly to a program rather than to a mailbox. The program receives the incoming message as input and handles it as it pleases. miguel -- If You want to buy computer parts, see the reviews at: http://www.cnet.com/ **OR EVEN BETTER COMPILATIONS**!! http://sysopt.earthweb.com/userreviews/products/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mail responders
How would you set this up via PHP? I've wanted to do this, but I always thought it was something specific to SendMail, and in a hosted environment, mucking about with SendMail generally isn't allowed... I'd like to send an email to something like [EMAIL PROTECTED] but have a PHP script get the mail and operate on it... At 11:56 AM 4/26/2002 -0500, you wrote: On Fri, 26 Apr 2002, Dennis Gearon wrote: All these lists that have addresses to subscribe, unsubscribe, etc, how do they work? Are they using a cron job to poll the mail inbox through sendmail? Does all mail not to a specific address at the site go to a 'catchall' address, which is then polled? Usually the mail is delivered directly to a program rather than to a mailbox. The program receives the incoming message as input and handles it as it pleases. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mail responders
1) Make sure you have built the CGI versions of PHP. 2) Create a PHP script file that begings with a bangpath invocation of the PHP CGI binary. So, if your standalone PHP were located in /usr/local/bin/php, your PHP file would start with: #!/usr/local/bin/php -q 3) In your script, use fopen, etc., to read from php://stdin. The incoming message will be there. 4) Do anything you like with the data. Store it in databases, create a reply and mail() it out, etc. 5) You'll have to convince sendmail to deliver mail for one or more addresses to your PHP script file. With qmail it's a matter of creating a .qmail file with |/path/name but I wouldn't know how to do that particular thing with sendmail as I never use it. Good luck! miguel On Fri, 26 Apr 2002, JSheble wrote: How would you set this up via PHP? I've wanted to do this, but I always thought it was something specific to SendMail, and in a hosted environment, mucking about with SendMail generally isn't allowed... I'd like to send an email to something like [EMAIL PROTECTED] but have a PHP script get the mail and operate on it... At 11:56 AM 4/26/2002 -0500, you wrote: On Fri, 26 Apr 2002, Dennis Gearon wrote: All these lists that have addresses to subscribe, unsubscribe, etc, how do they work? Are they using a cron job to poll the mail inbox through sendmail? Does all mail not to a specific address at the site go to a 'catchall' address, which is then polled? Usually the mail is delivered directly to a program rather than to a mailbox. The program receives the incoming message as input and handles it as it pleases. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mail responders
You must have control over the Message Transfer Agent (MTA), such as SendMail. Or, if your host uses qmail MTA, you set it up using the dot-qmail files in your user directory. - Original Message - From: Dennis Gearon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 26, 2002 12:05 PM Subject: Re: [PHP] Mail responders How is that done on the box? Miguel Cruz wrote: On Fri, 26 Apr 2002, Dennis Gearon wrote: All these lists that have addresses to subscribe, unsubscribe, etc, how do they work? Are they using a cron job to poll the mail inbox through sendmail? Does all mail not to a specific address at the site go to a 'catchall' address, which is then polled? Usually the mail is delivered directly to a program rather than to a mailbox. The program receives the incoming message as input and handles it as it pleases. miguel -- If You want to buy computer parts, see the reviews at: http://www.cnet.com/ **OR EVEN BETTER COMPILATIONS**!! http://sysopt.earthweb.com/userreviews/products/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mail responders
On Saturday 27 April 2002 01:13, JSheble wrote: How would you set this up via PHP? I've wanted to do this, but I always thought it was something specific to SendMail, and in a hosted environment, mucking about with SendMail generally isn't allowed... I'd like to send an email to something like [EMAIL PROTECTED] but have a PHP script get the mail and operate on it... At 11:56 AM 4/26/2002 -0500, you wrote: On Fri, 26 Apr 2002, Dennis Gearon wrote: All these lists that have addresses to subscribe, unsubscribe, etc, how do they work? Are they using a cron job to poll the mail inbox through sendmail? Does all mail not to a specific address at the site go to a 'catchall' address, which is then polled? Usually the mail is delivered directly to a program rather than to a mailbox. The program receives the incoming message as input and handles it as it pleases. What are you actually trying to do? If you're trying to make a mailing-list type program then you're better off using an existing mailing list program. Otherwise with sendmail you can use procmail. It's clunky but doable. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* The whole world is about three drinks behind. -- Humphrey Bogart */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Mail responders
snip I'd like to send an email to something like [EMAIL PROTECTED] but have a PHP script get the mail and operate on it... snip You might want to reference an article from the May issue of Sysadmin Magazine ( http://www.sysadminmag.com/ ) title 'Using Email to Perform UNIX System Monitoring and Control' by Bob Dilworth. On the down side of your question, the article describes how Perl and Sendmail is used to execute commands, not PHP. This should give you some ideas on how to approach it though. -Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php