Re: PHP Auto-Responder
| From: | David T-G | Date: | Wed, 18 Dec 2002 04:51:11 +0000 |
| Subject: | Re: PHP Auto-Responder | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128645@lists.php.net to get a copy of this message | ||
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) davidtg@justpickone.org * society and not sufficient moral courage.
(work) davidtgwork@justpickone.org -- Mary Baker Eddy, "Science and Health"
http://www.justpickone.org/davidtg/ Shpx gur
Pbzzhavpngvbaf Qrprapl Npg!