Re: Passing data between the web to an Intranet
| From: | Jason Wong | Date: | Wed, 26 Mar 2003 18:54:28 +0000 |
| Subject: | Re: Passing data between the web to an Intranet | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-141110@lists.php.net to get a copy of this message | ||
On Wednesday 26 March 2003 22:31, Steve Jackson wrote:
> After much searching I found this
>
> http://marc.theaimsgroup.com/?l=php-general&m=104210703824057&w=2
> This
>
> http://marc.theaimsgroup.com/?l=php-general&m=104219587732145&w=2
>
> And others with process in the body and subject line but not any of the
> thread you refer to.
OK, the latter thread explains pretty much what you need to do if you're using
sendmail as your MTA. But no matter what MTA you're using, the PHP script is
going to be more or less the same:
1) read in the email through STDIN
2) parse it
3) do whatever you need with the data
How you invoke this script depends on what MTA you use. For example with qmail
you just create a dot-qmail file with the following line:
| /path/to/your/script.php
Similar mechanisms exists for courier-mta and postfix.
--
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
------------------------------------------
/*
The revolution will not be televised.
*/