Re: [PHP] PHP Auto-Responder

2002-12-17 Thread David T-G
Kevin, et al --

...and then Kevin Stone said...
% 
% I need a solution to activate a PHP script when somebody sends an email to a
% specified account.  I've looked into procmail and sork and find that I am in

I won't go into procmail propaganda except to say that it isn't as hard
as it looks -- or as most people make it out to be.

I can't think of an MTA that doesn't have a forwarding method (.forward
or .qmail, with exim and postfix perhaps having something else but they
all work the same way).  Set up mail forwarding so that a copy goes to
your PHP script, or a wrapper script that does something with the message
and then calls your real script.  No need for cron jobs and polling.  [If
you want, you can also store a copy of the email by providing a second
target in the forward file).


HTH  HAND  Happy Holidays

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, Science and Health
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg89969/pgp0.pgp
Description: PGP signature


[PHP] PHP Auto-Responder

2002-12-16 Thread Kevin Stone
I need a solution to activate a PHP script when somebody sends an email to a
specified account.  I've looked into procmail and sork and find that I am in
way over my head.  I know my way around PHP well enough but I'm more than a
little dense when it comes to Unix commands.  I wouldn't even know how to
install procmail, let alone use it.  So is there a more Plug n' Play
solution that I can unzip, upload to my FTP account, modify a few variables,
and just have it work?  Perhaps through sendmail which is already installed
on the server?  Surely the problem is universial enough that somebody has
come up with a solution.  I appreciate any help tracking it down.

-Kevin



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP Auto-Responder

2002-12-16 Thread Jason Wong
On Tuesday 17 December 2002 04:16, Kevin Stone wrote:
 I need a solution to activate a PHP script when somebody sends an email to
 a specified account.  I've looked into procmail and sork and find that I am
 in way over my head.  I know my way around PHP well enough but I'm more
 than a little dense when it comes to Unix commands.  I wouldn't even know
 how to install procmail, let alone use it.  So is there a more Plug n'
 Play solution that I can unzip, upload to my FTP account, modify a few
 variables, and just have it work?  Perhaps through sendmail which is
 already installed on the server?  Surely the problem is universial enough
 that somebody has come up with a solution.  I appreciate any help tracking
 it down.

I'm not sure about the problem being universal (enough) but the solution 
certainly isn't universal :-)

Different MTAs would require different configurations and may require more 
privileges than a standard webhosting account usually have.

One solution you can consider is to have a php script polling a mail account 
at regular intervals and acting on whatever mail it gets. This way, you don't 
have to worry about what MTA your host is using, and does away with the need 
to install extra software.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
The bigger they are, the harder they hit.
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP Auto-Responder

2002-12-16 Thread Kevin Stone
- Original Message -
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 16, 2002 3:16 PM
Subject: Re: [PHP] PHP Auto-Responder


 On Tuesday 17 December 2002 04:16, Kevin Stone wrote:
  I need a solution to activate a PHP script when somebody sends an email
to
  a specified account.  I've looked into procmail and sork and find that I
am
  in way over my head.  I know my way around PHP well enough but I'm more
  than a little dense when it comes to Unix commands.  I wouldn't even
know
  how to install procmail, let alone use it.  So is there a more Plug n'
  Play solution that I can unzip, upload to my FTP account, modify a few
  variables, and just have it work?  Perhaps through sendmail which is
  already installed on the server?  Surely the problem is universial
enough
  that somebody has come up with a solution.  I appreciate any help
tracking
  it down.

 I'm not sure about the problem being universal (enough) but the solution
 certainly isn't universal :-)

 Different MTAs would require different configurations and may require more
 privileges than a standard webhosting account usually have.

 One solution you can consider is to have a php script polling a mail
account
 at regular intervals and acting on whatever mail it gets. This way, you
don't
 have to worry about what MTA your host is using, and does away with the
need
 to install extra software.

Yes that was the obvious solution unfortunately my web host does not have
crontab installed for users forcing me to seek other solutions.  I have
asked my web host if they can install crontab and hopefully they respond
favorably to my request.  If not then I may have a find a host just to do
this one job which seems like kind of a waste considering we're talking
about an infantesimal amount of bandwidth (four or five requests per hour).

Anyay I appreciate your help.  At least I'm a little bit more focused now.

Thanks,
-Kevin



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php