On Thursday 12 June 2003 18:12, Brian McGarvie wrote:
> I have a question about automated email:
>
> In my sendmail configuration i have:
>
> Alias: Testit
> Feeds to Program /usr/local/bin/php
> /usr/local/apache/sites/xxx.com/tasks/automail/test.php
>
> testit is set up to an address, so if i send to [EMAIL PROTECTED] the above is
> indeed ran, my question is how in the test.php can i access the original
> email that triggered it?
>
> Any clues would be much appreciated :)

Assuming that your sendmail alias was setup properly then the whole email will 
be available in STDIN, see manual > Using PHP from the command line for 
details.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
If you sell diamonds, you cannot expect to have many customers.
But a diamond is a diamond even if there are no customers.
                -- Swami Prabhupada
*/


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

Reply via email to