[thelist] starting script when email is received
Sarah Heffron
sarah at meatlike.com
Fri Mar 8 18:56:00 CST 2002
I'm curious as to how one would forward an email to a program?
-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Warden, Matt
Sent: Friday, March 08, 2002 4:47 PM
To: thelist at lists.evolt.org
Subject: Re: [thelist] starting script when email is received
On Mar 9, Daniel Farkas had something to say about [thelist] starting...
>This is the thing.
>In moment of stupidity I promissed to my friend that he'll get his own,
>fully customizable mailing group.
>When somebody posts mail to servers's address that mail should be posted to
>all subscribers instantly.
>How can I invoke my php script on email arrival?
>Is it possible at all?
>
>I need a general solution, not one like "if you are on unix machine and
mail
>server is on...".
well, it's going to depend on the OS. I dont' think you can get around
that. if you're on a *nix machine, you should be able to forward the mail
to a program like so:
create a file named .forward with something like this:
./sendmail.php
assuming you're using php as a shell script.
however, you may have to look into how the email is forwarded to the
program in order to make use of this.
hth.
--
mattwarden
mattwarden.com
--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !
More information about the thelist
mailing list